Jeff Glatz wrote: > hi! > > i'm working with the chapter/section abstractions to generate a working > marketing plan PDF for our marketing group. > > sections will not be more than a page (PageSize.LETTER) in length, and i > have a requirement that equates to "if a section crosses page > boundaries, start the section on a new page". > > what is the best approach to detecting this? about the only thing i can > find related to page breaks is "how do i start a new page"...
Class section has a method setTriggerNewPage. If you set this member variable to true, newPage() will be triggered for that Section. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ 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
