On Tue, Jan 13, 2009 at 2:16 PM, Klas Lindbäck <[email protected]> wrote: > What page breaking algorithm do you want to use? > Do you want to keep entire sections on the same page or do > you want to avoid orphans and/or widows? > > A simple way to find the height of an entire section is to preview the > output: > 1. Create a scrap document with the same pagesize, borders etc > and render the section on it. > 2. Read the current Y position. > > You can then compare with the space left on the current page of your > document.
Thanks for the replies everyone. I hadn't though about rendering it to a scrap document first, I think that's the best way to handle this. Thanks again, Charlie M ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ 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
