Bug 11926 - Text in SVG produces a corrupt PDF
Summary: Text in SVG produces a corrupt PDF
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: svg (show other bugs)
Version: 0.20.4
Hardware: All other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-22 10:38 UTC by Osma Ahvenlampi
Modified: 2012-04-01 06:40 UTC (History)
3 users (show)



Attachments
demonstration SVG (2.41 KB, image/svg)
2002-08-22 10:41 UTC, Osma Ahvenlampi
Details
fo document using the svg (773 bytes, text/xml)
2002-08-22 10:41 UTC, Osma Ahvenlampi
Details
resulting, broken pdf (2.00 KB, application/pdf)
2002-08-22 10:42 UTC, Osma Ahvenlampi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Osma Ahvenlampi 2002-08-22 10:38:53 UTC
If an SVG image embedded in or referenced by an fo document contains text, and
FOP is used in the strokeSVGText=false mode to use PDF text commands for the
output of the text, the PDF created will be corrupt. While Acrobat Reader and
Xpdf display the PDF correctly, GhostView does not, and printing the document to
a PostScript printer fails from all programs. Acrobat/Distiller can sometimes
repair the document if some other part of the PDF is changed and the document
resaved.

Depending on the font used (Type1 or TrueType), the document either does not
print at all (or can not be viewed in GhostView), or the text inside the SVG
image is missing (more accurately, will be rendered with point size 0 somewhere
in the document).

In addition, GhostView outputs an error:

   **** This file has a corrupted %%EOF marker, or garbage after the %%EOF.
   **** The file was produced by FOP 0.20.4:
   **** please notify the author of this software
   **** that the file does not conform to Adobe's published PDF
   **** specification.  Processing of the file will continue normally.

Rendering the text as shapes produces a correct PDF, but it is larger and will
not produce a clean screen representation in Acrobat Reader.

I'm attaching three files demonstrating the bug.
Comment 1 Osma Ahvenlampi 2002-08-22 10:41:05 UTC
Created attachment 2800 [details]
demonstration SVG
Comment 2 Osma Ahvenlampi 2002-08-22 10:41:41 UTC
Created attachment 2801 [details]
fo document using the svg
Comment 3 Osma Ahvenlampi 2002-08-22 10:42:20 UTC
Created attachment 2802 [details]
resulting, broken pdf
Comment 4 Aaron 2002-10-30 18:34:23 UTC
I have the same/similar problem.  Is anyone working at this bug?
Comment 5 keiron 2002-11-29 10:17:24 UTC
I cannot reproduce the problem.
Do you still get this problem with the cvs branch.

Maybe it is something to do with embedding fonts.
Propbably need more information in order to track down this bug if it still is 
occuring.

If the problem still exists then reopen the bug.
Comment 6 Glenn Adams 2012-04-01 06:40:16 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed