Vector images as resources
We would like to use vector images (instead of bitmaps, jpg, png, gif etc) in some parts of the templates, such as headers.
Suitable formats would be e.g. PDF, AI, PS.
Do you support any vector format for this? It would allow the images, especially logotypes, to print out without rasterizing.
Currently If I try with the img tag, like <img src="somepdf.pdf" />, I receive
java.lang.ClassCastException: org.xhtmlrenderer.pdf.PDFAsImage cannot be cast to org.xhtmlrenderer.pdf.ITextFSImage
-
Hi,
We currently do not support vector graphics but I added a feature request for SVG support here: http://k15t.jira.com/browse/PDF-257
Once this is implemented you will be able to put something like this into the margin box / static pages:
<object type="image/svg+xml" data="logo.svg" height="40" width="40" />
Best regards,
Jens
Please sign in to leave a comment.
Comments
1 comment