Reputation: 8808
I'm using NReco PDFGenerator to create a PDF document from an HTML string. When a table is split over a page break, the table header overlaps the next row in the table (see image below).
Any ideas on how to fix this?
Upvotes: 7
Views: 4153
Reputation: 8808
I found that this is fixed by adding the following css:
thead {display: table-header-group;}
tfoot {display: table-row-group;}
tr {page-break-inside: avoid;}
Upvotes: 21