> -----Original Message-----
> From: kathy [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, October 07, 2003 23:12
> To: iText-FAQ
> Subject: [iText-questions] Can iText support svg?
>
> Hi,
>
> Just want to know whether iText can support svg (scalable vector
> graphics)? Beside that, why the font underline is different with MS
>
iText can read SVG with batik and maintain the vector and text
characteristics of the original.
Use the following code as a start:
PdfContentByte cb = writer.getDirectContent();
Graphics2D g2 = cb.createGraphics(500, 500);
PrintTranscoder prm = new PrintTranscoder();
TranscoderInput ti = new TranscoderInput("file:///C:/mapWaadt.svg");
prm.transcode(ti, null);
PageFormat pg = new PageFormat();
Paper pp= new Paper();
pp.setSize(500, 500);
pp.setImageableArea(0, 0, 500, 500);
pg.setPaper(pp);
prm.print(g2, pg, 0);
g2.dispose();
You'll probably need to set the DefaultFontMapper with the correct
fonts.
> Word, that means the space in between text and underine is larger than
> in MS Word, i wonder how come the underline is not draw on the baseline
> of a text, from what i can see, it is draw on the text leading basis, am
> i right? is there any solution to it since this is not a good way to do
> it? Thanks.
>
It's a matter of taste but it probably should be configurable.
Another item to add to my to-do list.
Best Regards,
Paulo Soares
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions