Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NReco PDF Generator overlapping table header when the table is split over pages

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).

enter image description here

Any ideas on how to fix this?

like image 987
jim31415 Avatar asked Aug 29 '16 16:08

jim31415


1 Answers

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;}
like image 136
jim31415 Avatar answered Dec 09 '22 00:12

jim31415