I have three nested tables.Say one header table,Content table,Summary table.I
created three nested tables for alignment purpose.
Header tables has 2 rows,Content table can have many number of rows.I will
iterate this in an loop for content.Summary table has three rows.I will add
these three tables to an main table.

While Generating PDF using IText 2.1.7.jar,

I know fit these three tables in an Page always will be difficult.Because my
Content table rows will vary.

My problem is,Sometimes I am getting first header table display at last of
an  page and my content table got split and starts in next page.My Header
table becomes like hanging in an wall without any content in an page.

My Aim is to display Header table with atleast with an row of content table
at any page and not header table alone got splitted in an page and
content,summary in another page.

It want something like this,
--------------------------------------------
Page1
--------------------------------------------
Header Table
Content Table with varying content
Summary Table

Header Table
Content Table of atleast one row
---------------------------------------------
Page 2
-----------------------------------------------
Content table content with remaining contents
Summary Table

---------------------------------------------

I am using,

setKeepTogether(true);
setSplitRows(false);
setSplitLate(false);

in each tables.

How do i need to change these methods at each table level to bring above
scenario .
Also how to use,
document.newpage() effectively.

Need help in this regard.

-- 
View this message in context: 
http://old.nabble.com/How-to-enforce-split-in-an-page-for-below-conditions-using-IText-methods-tp27783257p27783257.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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