Op 11/04/2011 11:32, Palmer, Richard schreef:
I was hoping to use the setSkipFirstHeader() method to display a
'continued -- from last page' header row when a table is split across
pages. ( as suggested in the Manning -- itext In Action 2^nd edition
book section 4.3.1.)
The pdf document that I'm producing has several tables of variable
length, so it is possible that any of these tables could begin on a
new page. When this happens I get the first header row ('continued -
from last page') and the standard header row displayed together.
Thank you for your code snippet.
I've been able to reproduce your problem.
Apparently setSkipFirstHeader() only works if you've already added data
to the document.
For instance:
document.open();
document.add(new Paragraph("title"));
document.add(table);
document.close();
It doesn't work if you just do:
document.open();
document.add(table);
document.close();
I'll look into it.
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
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