• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Change size of SVGs in PDF (xsl:fo)

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic