Repeating table header on every page with Pechkin

1.2k Views Asked by At

I'm trying to include the header (thead) of a table on the top of every page generated by Pechkin (wrapper for wkhtmltopdf), but it doesn't seem to work at all. Is this feature even available or am I missing something?

I've tried including the following into the pages CSS:

table { page-break-after: auto; }
tr { page-break-inside: avoid; page-break-after: auto; }
td { page-break-inside: avoid; page-break-after: auto; }
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
1

There are 1 best solutions below

0
On

I'm afraid the answer is that this isn't possible. The only thing you can probably do is put the table header in the PDF header.