You can use a PdfPTable with single column, padding 0 and fixed cell height. It's a good option. Don't forget to remove the borders.
Best Regards, Paulo Soares ----- Original Message ----- From: "BAA" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 16, 2002 13:18 Subject: Re: [iText-questions] textboxes > Paulo Soares wrote: > > 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. > > > > 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. > > 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 > ------------------------------------------------------- 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
