xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37877] - PDF SVG rendering produces bad dimensions
Date Tue, 13 Dec 2005 22:37:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37877>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37877





------- Additional Comments From jeremias@apache.org  2005-12-13 23:37 -------
(In reply to comment #5)
> [in reply to comment #3]
> So I did. I still can't reproduce the stretching effect... Maybe it's caused
by the fact that I'm on Mac (Apple 
> JVM 1.4.2)? Can anyone else running Windows XP confirm the stretching behavior?

No, no stretching here with FOP Trunk. I'll try again tomorrow with fresh energy.

> [in reply to comment #4]
> I haven't fully sorted out why the clipping happens. I'm not an SVG expert, so
may take some time before I 
> can explain this, but as soon as I find something I'll get back to you.

If I set the uaResolution to 96 in
org.apache.fop.render.pdf.PDFSVGHandler.renderSVGDocument() then the SVG doesn't
get clipped. PDF normally uses 72dpi. That and the fact that the SVG doesn't use
a viewBox is the reason that the sizes differ. As I learned from Thomas DeWeese,
having an SVG without a viewBox asks for trouble. In this case here the viewBox
should be: viewBox="0 0 400 350"

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message