Hello,

The new itext version use a new native svg support. I setup a small sample,
but i never get the svg render inside an pdf. Is there a example how to use
the new classes from the com.itextpdf.tool.xml.svg packeages?

My example...

Document document = new Document();
PdfWriter writer = PdfWriter.getInstance(document, new 
FileOutputStream("testSvg.pdf"));
document.open();

PdfTemplate template = 
XMLHelperForSVG.getInstance().parseToTemplate(writer.getDirectContent(), new 
FileReader(svgResourcePath));
writer.getDirectContent().addTemplate(template,0,0);

document.close();
write.close();

any help are welcome....

with regards


Mit freundlichen Grüßen

Thomas Kübler

----------------------------------------------------

Dynamic Document Solution variex
Alt-Marienfelde 25
12277 Berlin

t. + 49 30 723 23 183
f. + 49 30 723 23 185

mailto:[email protected]
www.variex.de





------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to