[ 
https://issues.apache.org/jira/browse/FOP-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16774005#comment-16774005
 ] 

Jan Tošovský commented on FOP-2846:
-----------------------------------

That SVG source seems to be overcomplicated, using lot of gradients and also 
the clipping path. Some parts of the content are rasterized, using the default 
DPI, which is to small in your case (72). You can try increasing this value or, 
better, use less complicated icon.

[https://xmlgraphics.apache.org/fop/2.3/configuration.html]

<target-resolution>72</target-resolution>

 

> SVG not handled / rendered / embedded properly
> ----------------------------------------------
>
>                 Key: FOP-2846
>                 URL: https://issues.apache.org/jira/browse/FOP-2846
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Björn Kautler
>            Priority: Major
>         Attachments: image-2019-02-21-12-15-39-802.png, 
> image-2019-02-21-12-17-26-206.png, med-folder-journal.svg, 
> roadsign-attention.svg, svg-test.fo, svg-test.pdf
>
>
> It seems FOP does not handle all SVGs properly.
> The attached [^svg-test.fo] which displays the attached files 
> [^roadsign-attention.svg] and [^med-folder-journal.svg] demonstrate the 
> problem.
> The result of {{fop-2.3/fop/fop svg-test.fo svg-test.pdf}} can be seen in 
> [^svg-test.pdf], especially if you zoom in.
> The {{med-folder-journal.svg}} is properly displayed and scaled, the 
> {{roadsign-attention.svg}} looks like the triangle is rendered to pixels that 
> scale up, but the exclamation mark properly scales.
> Here the PDF content as screenshot on 1200%:
> !image-2019-02-21-12-15-39-802.png!
> Using the code at [https://xmlgraphics.apache.org/batik/using/swing.html] 
> shows that Batik 1.10 can perfectly fine scale up the SVG:
> !image-2019-02-21-12-17-26-206.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to