We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Calling table.setSkipFirstHeader(true) does not skip the header rows on the first page.
To Reproduce create basic table that spans multiple pages.
document.open(); PdfPCell cell; PdfPTable mainTable = new PdfPTable(1); mainTable.setWidthPercentage(100); cell = new PdfPCell(new Phrase("HEADER 1")); cell.setBorder(Rectangle.BOX); mainTable.addCell(cell); cell = new PdfPCell(new Phrase("HEADER 2")); cell.setBorder(Rectangle.BOX); mainTable.addCell(cell); cell = new PdfPCell(new Phrase("HEADER 3")); cell.setBorder(Rectangle.BOX); mainTable.addCell(cell); for (int i = 0; i < 100; i++) { cell = new PdfPCell(new Phrase("ROW "+i)); cell.setBorder(Rectangle.BOX); mainTable.addCell(cell); } mainTable.setHeaderRows(3); mainTable.setSkipFirstHeader(true); mainTable.setSplitLate(false); document.add(mainTable);
Expected behavior First page should not have HEADER 1,2,3 rows.
Screenshots
The text was updated successfully, but these errors were encountered:
@kolaval I have fixed it #537, it is a little problem.
Sorry, something went wrong.
UnitTest for #536: setSkipFirstHeader not working
424130c
- UnitTest added
@asturio Issue again in 1.3.28
Successfully merging a pull request may close this issue.
Describe the bug
Calling table.setSkipFirstHeader(true) does not skip the header rows on the first page.
To Reproduce
create basic table that spans multiple pages.
Expected behavior
First page should not have HEADER 1,2,3 rows.
Screenshots
The text was updated successfully, but these errors were encountered: