Hello,

How can I add underlined text at an absolute position ?

I've seen how to add italic, bold or bolditalic text at an absolute position, 
by using the right TrueType font, like this:

BaseFont arialItalic = BaseFont.createFont("ariali.ttf", BaseFont.WINANSI, 
BaseFont.EMBEDDED);
cb.setFontAndSize(arialItalic, 12);
cb.showTextAligned (PdfContentByte.ALIGN_LEFT, "this is italic", x, y, 0);

But all the ttf files I've seen so far, only have italic, bold and bold-italic versions, 
and no "underlined" version.

By the way, I am using an embedded font because I have to support unicode.
And I need absolute positioning because my output is based on another pdf using 
PdfReader.

I guess it's not possible to create a Paragraph or a Phrase and add it to the 
document at an absolute position ?

Thanks,
Maarten



-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to