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.
Created attachment 2800 [details] demonstration SVG
Created attachment 2801 [details] fo document using the svg
Created attachment 2802 [details] resulting, broken pdf
I have the same/similar problem. Is anyone working at this bug?
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.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed