This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes Change size of SVGs in PDF (xsl:fo) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Change size of SVGs in PDF (xsl:fo)" Watch "Change size of SVGs in PDF (xsl:fo)" New topic
Author

Change size of SVGs in PDF (xsl:fo)

Robert Jaeger
Ranch Hand

Joined: Apr 29, 2002
Posts: 62
Hi!
I am successfully integrating images in PDF with Cocoon, the image sources are described in my XML source files.
Scaling JPGs is no problem. Moreover they are automatically resized in the PDF output if they are bigger than the page size.
Unfortunately that doesn�t happen with SVGs. They are not automatically resized (if they are too big only some parts are displayed) and I cannot resize them with the parameters "width" and "height" in the "external-graphic"-tag.
On the page http://xml.apache.org/fop/graphics.html the problem/solution is not mentioned.
Maybe someone has experiences with this problem or any idea how to solve it, that would be really great (SVGs look so much better in PDF than JPGs)
Greetings from Vienna,
Robert.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change size of SVGs in PDF (xsl:fo)