The fitsPage method doesn't work that well. It's better to include a safeguard margin in the method.
Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Stewart Hector > Sent: Sunday, June 20, 2004 9:50 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] (PDF) table fitspage problem > > Hi > > I am using PdfPTable and table fitspage method to keep tables short - > due to the potential size of reports. > > On my first page I have a Report Heading, plus other text, after this > the table starts. Table FitsPage seems to assume the table > is the only > content on a page and that the table starts at the top of the > page and > therefore the FitsPage will only return false after a pageful > of table > has been produced, even if it means the table spills on to page 2. ( > Therefore, on page 2, the table will finish at the point that > the Table > started on page 1). > > How can I ensure the FitsPage method will return false when > the end of > the physical page has been reached when using tables plus other > content. > > Thanks. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San > Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority > Code NWMGYKND > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
