Perhaps I should clarify: I am using itext-1.3. Might this explain the problem? As much as I want the ability to keep together a table, if I have to upgrade to a current version of itext, the risk is too high that it will break the rest of this creaky product that I am struggling to maintain.
>>> 1T3XT BVBA <i...@1t3xt.info> 06/14/2011 23:56 >>> On 15/06/2011 0:04, Clayton Cramer wrote: > This should be really simple: I have a PdfPTable that crosses a page > boundary. I would like to tell iText to force a page break before the > PdfPTable if it would split the table. According to section 6.1.5 of iText > in Action, I should be able to do this with table.setSplitLate(true). But > whether I set it true or false, the result is the same: the table splits at a > page boundary. As you can read in the book (I currently only have the second edition nearby, you're referring to the first edition), setSplitLate() determines whether or not ROWS should be splitted early or late. That method doesn't tell you anything about moving the complete table to the next page. ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php