Jeff Glatz wrote:
> 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?

I still don't understand the question (nor why you would want such a 
thing), but no: that's not possible with the Chapter/Section classes.
While constructing the Chapter/Section classes, they are unaware of the 
page size, the space left on the page, etc...
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

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