(b) is easy to do with PdfPCell.setFixedHeight(float fixedHeight). For (a) it must be done by trial and error.
Best Regards, Paulo Soares > -----Original Message----- > From: Matthew Lavy [SMTP:[EMAIL PROTECTED]] > Sent: Monday, July 01, 2002 17:25 > To: Paulo Soares > Cc: [EMAIL PROTECTED] > Subject: Re: Table height > > Paulo Soares writes: > > > If you chose the font size, the leading and the cells padding then a > Table > > or a PdfPTable can be used, just do the calculations. > > If, on the other hand, you need a table that must be shrunk afterwards > to > > fit the page, a PdfPTable must be used. > > > > This works fine if I'm only worried about making sure the table fills at > least 1/3 page. However, it doesn't help when I have too much content, > because the table will just grow. I should have said originally that I > have > a full text paragraph in one of the cells, and don't know in advance how > much text there will be. I would like to be able to specify a fixed table > heigth and either (a) shrink / grow the text to fit, or (b) just cut the > text if it doesn't all fit. I couldn't think of an obvious way to do > either, > even with PdfPTable. > > regards, > Matthew > > -- > Matthew M Lavy MA PhD ARCM LTCL > Tel: 01223 511338 > http://www.scribblin.gs ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions