Paulo Soares wrote:
it's multible lines with only one font (for now anyway) .. my initial thought was to make a single cell'ed table with fixed size and then place this in the position wanted. i'm just not sure if this was best way to do this.If you want to place a single line of text with the same font use PdfContentByte.showTextAligned(), it takes care of horizontal alignment. For vertical alignment you'll have to calculate it yourself. For mixed fonts and multiline use ColumnText. Other option is to use a PdfPTable that can take care of all the horizontal and vertical alignments.
something like (pseudo code)
1. make textbox with fixed size
2. put text in textbox aligned
3. put textbox into the pdf
if i have to i'll make a pdf (fixed to width,height of textbox) containing only the text aligned, and then place the pdf within the (bigger) pdf.
thanks, for your help
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
