Hi,
  Am trying to use code to determine whether I want to split a cell over a page 
break. What I am looking for is a way of determining where on the current page 
the next element will be added.

More Detail:

I have already added elements (image, text and a few tables) to the Document 
and am about to add a table. This table can have a variable number of cells, with 
each cell having a variable number of lines of text. I want to work out how much 
space is going to be at the bottom of the current page before I add the next cell. I 
can then use the size of the new cell and this value to determine whether to split 
it, or not. If the space at the bottom of the current page would only allow a few 
lines from the new cell, I would set the setCellsFitPage property to true, if 
however several lines would fint (more than 3 for instance) I would set the 
setCellsFitPage to false.

At the moment the code just uses the size of the new cell to be added to 
determine the setCellsFitPage value, but this still results in either too much 
whitespace if the value is bigger, and one or two lines of a cell appearing  at the 
bottom of page with the rest of the cell on the next page if the value is too small.

Thanks.


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to