See ColumnText.showTextAligned(). Paulo
----- Original Message ----- From: "Andrew Todd" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, January 18, 2008 9:56 PM Subject: [iText-questions] Font styles within PdfContentByte object >I am attempting to add text to an already existing document using the > PdfContentByte object. The reason for a choice of PdfContentByte was to > allow for easy positioning, rotation, and alignment of the text. I am, > however, having some problems with font styles (bold, italic, etc.) > applying within this object. > > The way that I have chosen to set the font is to generate a Font object, > set the font family and style, and use the BaseFont object accessible > from therein to setup the PdfContentByte. The problem I am having is > that when I get the BaseFont object, the font styles are lost, and the > BaseFont object does not support any method of setting bold/italic/etc > attributes. > > Is there a way to accomplish this, other than a workaround using svg to > render the text properly? > > Thanks, > Andrew Todd ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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/
