In this demo you learn how to automatically repeat the header and footer content of a HTML table on each PDF page where the table is laid out.

When the 'display: table-header-group' is present in the HTML table thead tag style the thead content will be automatically repeated on all the PDF pages.

When the 'display: table-footer-group' is present in the HTML table tfoot tag style the tfoot content will be automatically repeated on all the PDF pages.

The HTML code below defines a table with a thead and a tfoot that will be automatically repeated on each PDF page where the table is laid out.
HTML Code
HTML Code Base URL
Browser Width: px