I noticed if I create a table with some header rows and set
skipFirstHeader(true) and then set keepTogether(true) and add the table
to the document using doc.add(table) the header rows are being
considered in the calculation to determine if the table fits on the
current page...even if they aren't going to print when the table is
rendered.

To apply example numbers, assume you have a table with 5 rows all 1 inch
tall...keepTogether(true)...skipFirstHeader(true)

Row 1 and 2 are header rows

Rows 3,4,5 are body rows

The table is 5" tall

If you have 4" left on the current page, there technically is enough
room to print the table, because the headers are skipped and only the
three body rows would print.  It appears like the two header rows are
cause the table to be pushed to the next page because a 5" table can't
be rendered in a 4" space with keepTogether(true).

Is this by design?  Can someone else confirm this?

I'm using iText 5.1.2 

Jason Berk
[email protected]
www.purduefed.com
800.627.3328 x8902


This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is 
intended solely for its authorized recipient(s), and may contain information 
that is confidential and or legally privileged. If you are not an addressee, or 
the employee or agent responsible for delivering it to an addressee, you are 
hereby notified that any use, dissemination, distribution, publication or 
copying of the information contained in this email is strictly prohibited. If 
you have received this transmission in error, please notify us by telephoning 
(765)497-3328 or returning the email. You are then instructed to delete the 
information from your computer. Thank you for your cooperation.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to