Bhaskar Somanchi wrote:
> This is the piece of code I tried to embed .svg files

Wrong use of terminology.

You can EMBED an SVG file in a PDF using a file
attachment annotation or a document level attachment.
In this case the bytes are embedded in the PDF and
the end user can extract it as-is.

>     Image image1 = Image.getInstance("wp1.svg");

Obviously you don't want to EMBED the SVG file, you
want to RENDER it as an image in a PDF file.

This is COMPLETELY different. In the book there's
an example that explains how to do it.
It involves using Apache Batik, a library that is
able to render an SVG file to a Graphics2D object.

br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to