Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
2.5
-
None
-
None
-
Operating System: All
Platform: All
-
37879
Description
Config setting:
<renderer mime="image/svg+xml">
<strokeText value="false"/>
</renderer>
... is virtual, since there is no code that uses that.
But most regression to FOP 0.20 is that when generating PDF, embeded SVG text is
forced to be stoked, and it seems there is no way to avoid it.
This bug makes files using SVG images with some text grow a lot.
Normally file which should be 300KB is 1MB and 70% of the file are strokes of
text from SVG files.
There is also bug related to that in
src/java/org/apache/fop/svg/PDFBridgeContext.java which may be related. In
registerSVGBridges() you check for fontInfo and linkTransform, that are not yet
uninitialized while super(...) is executing in constructor... however since this
function is called from super (BridgeContext) and it is STATIC.. this CODE will
never be called.
There is also no code for binding PDFTextPaineter like in 0.20.5. But I tried to
bind it to the context in PDFSVGHandler but ended up with PDF with no text on
SVG files.. however I must confess this PDF was 70% smaller
Please FIX it.. this is serious regression comparing to FOP 0.20.5. Thanks.