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

Joao Goncalves commented on FOP-3260:
-------------------------------------

Hi. This is actually not a bug. 

Browsers usually use a ratio of 96 pixels per inch. FOP uses 72 by default. 
This is the cause of the mis rendering in FOP. To fix this, add the following 
to your fop config:
 * <source-resolution>96</source-resolution>

 

I attached a PDF above showing a file generated using the above conf.




 

> SVG rendering problem - drawing elements move
> ---------------------------------------------
>
>                 Key: FOP-3260
>                 URL: https://issues.apache.org/jira/browse/FOP-3260
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/svg
>    Affects Versions: 2.11
>            Reporter: Michael Tsurikov
>            Priority: Major
>         Attachments: ForTesting.zip, image-2025-06-20-13-19-19-228.png, 
> image-2025-06-20-13-20-37-653.png, simplePageFull.pdf
>
>
> Consider the file \ForTesting\Pinout SVG FOP problem\tempbuild\topic.fo in 
> the attachment. Notice that it calls an SVG file, \ForTesting\Pinout SVG FOP 
> problem\images\pinout.svg.
> When I open pinout.svg in any SVG-aware app (examples: Inkscape, Chrome, 
> Edge, PowerPoint, Visio), all drawing elements appear correctly. Of relevance 
> to this bug report, notice this correct element appearance:
> !image-2025-06-20-13-19-19-228.png!
> When I use Apache FOP 2.11, with default settings, to publish topic.fo to a 
> PDF, some drawing elements in the PDF have moved. Notice where the three X 
> marks have moved:
> !image-2025-06-20-13-20-37-653.png|width=485,height=198!
> Because the SVG appears properly in all SVG-aware apps I've tried, I believe 
> this is a bug in Apache FOP. I humbly request you to fix this bug. Thank you 
> in advance.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to