ColumnText.showTextAligned() > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Frank Fischer > Sent: Wednesday, March 22, 2006 12:25 PM > To: [email protected] > Subject: [iText-questions] (no subject) > > Hi all > > first thanks to Paulo and Bruno for answering my previous question. > > I have another question related to underlined text. > I use DirectContent and would like to write underlined text > to a specific position. For normal text i use: > > PdfWriter writer = PdfWriter.getInstance(document, new > FileOutputStream("test.pdf")); > document.open(); > PdfContentByte cb = writer.getDirectContent(); > cb.beginText(); > BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, > BaseFont.CP1252, BaseFont.NOT_EMBEDDED); > cb.setFontAndSize(bf, 10); > cb.showTextAligned(PdfContentByte.ALIGN_LEFT, "text", 10, 10, 0); > > Now i could not find a way to make a BaseFont underlined. In > the Font class, there is a related method to underline the > text, but i can not set Font with cb.setFontAndSize(). > > Could please someone give a hint, how i can solve that issue? > > Thanks a lot > > Frank > >
------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
