Repeating Table Header and Footer

EO.Pdf can automatically repeat table header and footer when a table spans over multiple pages. To repeat the table header and footer, simply use thead and tfoot, instead of the regular tr element for the header and footer row. For example:

HTML
<table>
    <thead>
        <td>Header</td>
    </thead>
    ....many items that spans over multiple pages....
    <tfoot>
        <td>Footer</td>
    </tfoot>
</table>

If the above table spans over multiple pages, the table header and footer will be automatically repeated on every page. You can omit either thead or tfoot, in that case the corresponding section will not be repeated. For example, the following table only repeats the table header:

HTML
<table>
    <thead>
        <td>Header</td>
    </thead>
    ....many items that spans over multiple pages....
</table>

Set HtmlToPdfOptions.RepeatTableHeaderAndFooter to false if you do have thead and tfoot in your HTML but you do not wish them to be repeated.