thank you for the prompt reply. however, i don't think i properly
constructed my question. 

i am aware of that method and what it does, but what is the best way to
determine how many sections will fit on a page before i determine which
section to invoke that method on?

i.e. is there some way of computing the height of the sections then
comparing that to the height of the page to determine how many will fit
then calling setTriggerNewPage() on the section that would exceed the
page size? or is there some other way of accomplishing this?

thanks again!

> -----Original Message-----
> From: 1T3XT info [mailto:[email protected]] 
> Sent: Saturday, January 10, 2009 7:56 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] controlling page breaks (not 
> how to insert a new page)
> 
> 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
> 
########################################################################
"This email message, including any attachments, is for the sole use of the 
intended recipients and may contain confidential and privileged information.  
Unauthorized use, disclosure or distribution of this email is strictly 
forbidden.  If you have received this message in error, please reply to the 
above sender notifying them of this error, and then kindly delete the message."
########################################################################

------------------------------------------------------------------------------
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

Reply via email to