Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PdfPTable skipFirstHeader getting ignored #5

Open
pzahra opened this issue Jan 20, 2014 · 0 comments
Open

PdfPTable skipFirstHeader getting ignored #5

pzahra opened this issue Jan 20, 2014 · 0 comments

Comments

@pzahra
Copy link

pzahra commented Jan 20, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant