Hello Bruno,

Thanks for your quick reply.

This is the piece of code I tried to embed .svg files
to a pdf file. 

...
 Document doc = new Document ();
   PdfWriter.getInstance (doc, new FileOutputStream
("jobprints.pdf"));
   doc.open ();
    Image image1 = Image.getInstance("wp1.svg");
    Image image2 = Image.getInstance("wp2.svg");
   doc.add (image1);
   doc.add (image2);

.........

gives me the following exception 

Exception in thread "main" java.io.IOException:
file:/home/server3/z491866/vbuild-svg/wp1.svg is not a
recognized imageformat.
        at
com.lowagie.text.Image.getInstance(Image.java:437)
        at
com.lowagie.text.Image.getInstance(Image.java:773)
        at Test.main(Test.java:12)


--- Bruno Lowagie <[EMAIL PROTECTED]> wrote:

> Bhaskar Somanchi wrote:
> > Hello,
> > 
> > I tried embedding .svg files in pdf document and
> found
> > that iText does not support svg format. Is there a
> way
> > I could get svg embedded. 
> 
> Please rephrase the question so that it is easier
> for us to answer.
> What exactly did you try, and what went wrong
> according to you.
> 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/
> 



 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

-------------------------------------------------------------------------
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