Hello Bhaskar, Bhaskar Somanchi <[EMAIL PROTECTED]> writes:
> 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.
The exception says it all. svg is not a recognized image format,
i.e. not supported like i.e. jpeg etc.
> at
> com.lowagie.text.Image.getInstance(Image.java:437)
> at
> com.lowagie.text.Image.getInstance(Image.java:773)
> at Test.main(Test.java:12)
>
So i guess the answer is no. But i leave the final answer to more
knowlegable people than me.
regards
Dirk
--
_____________________________________________________________________
RISC: Relegate Important Stuff to Compiler
pgp5awlgg8b7z.pgp
Description: PGP signature
------------------------------------------------------------------------- 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/
