Bug 11926

Summary: Text in SVG produces a corrupt PDF
Product: Fop - Now in Jira Reporter: Osma Ahvenlampi <ahvenlampi>
Component: svgAssignee: fop-dev
Status: CLOSED FIXED    
Severity: normal CC: aaron.tam, kakivila, mika.ahorinta
Priority: P3    
Version: 0.20.4   
Target Milestone: ---   
Hardware: All   
OS: other   
Attachments: demonstration SVG
fo document using the svg
resulting, broken pdf

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