So how do I force iText to start printing that particular table to the next
page? What is the function or method that I use?

Thanks for your help and patience ^__^

--George


1T3XT info wrote:
> 
> [email protected] wrote:
>> How can I get the headerTable to start printing on the next page
>> if there is NOT enough room to fit it and n rows of the contentTable
>> onto the same page? In other words I dont want a headerTable all by >
>> itself on the bottom of a page -- I would rather have it start printing
>> on the next page.
> 
> I'm sure there's more than one way to do it, but if you
> set the total width of the table (use setTotalWidth()
> and don't forget setLockedWidth()), you can ask the table
> for the height of its cells.
> 
> Compare the height of the header with the space left on
> the page (you can get the current Y position using
> getVerticalPosition(); subtract this value from the
> bottom() value of the page).
> 
> Another solution involves using ColumnText.
> -- 
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
> 
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> _______________________________________________
> 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
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-keep-two-child-tables-together-within-parent-table-tp23666655p23675229.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to