I had a related problem with images and text in a table that should be keept together on page breake (See this list: Behavior of strictImageSequence=false fortabels??). Instead of manualy check if the table fits on the page and insert a pagebrack you may think of putting the table on a template, transform it to an image and add the image to your document. This has the advantage of alowing iText to automaticaly fill gaps on a page with contents that come after the table.
Regards Wolf -----Ursprüngliche Nachricht----- Von: 1T3XT info [mailto:[email protected]] Gesendet: Mittwoch, 30. September 2009 12:46 An: Post all your questions about iText here Betreff: Re: [iText-questions] Page break control Yves Goergen wrote: > On Wed, 30 Sep 2009 10:28:50 +0200, 1T3XT info <[email protected]> wrote: >> Yves Goergen wrote: >>> What are the suggested ways to determine whether a PdfPTable fits a > page >>> so that I can begin a new page before inserting the table? >> ColumnText answers all your questions. >> See http://1t3xt.info/tutorials/keywords/index.php#C >> and look for ColumnText > > Sorry, after reading the first few examples and the entire API reference > for the ColumnText class, I cannot see how this should in any way be > helpful to me. This class doesn't have any members that do things like flow > control or space measuring. ??? You obviously didn't read chapter 7 of "iText in Action". ColumnText is THE object you need to check if a sequence of objects fits the page. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
