PdfPTable skipFirstHeader getting ignored
If a table is the first item on a new page (either because keepTogether determined it wouldn't fit, or because a new page was added manually) skipFirstHeader=true gets ignored.
Find:
var skipHeader: Boolean = ( !firstPass && table.skipFirstHeader && listIdx <= headerRows );
Line 1154 ColumnText.as
Not sure why !firstPass is there. Issue resolved when that condition is removed.
If that is there for a reason, Find:
if (currentHeight > 0) {
var p: Paragraph = new Paragraph(null);
p.leading = 0;
ct.addElement( p );
}
Line 2120 PdfDocument.as
Adds an empty paragraph element before any table that is NOT started at the top of the page. Removing the if and allowing the element to be added every time also resolves the issue.