Table of Contents
- Getting Started
- EO.Pdf
- Overview
- Installation and Deployment
- Using HTML to PDF
- Using HTML to PDF
- Quick Start
- Setting Page Size and Margins
- Resizing Output
- Output Paging
- Web Page Authentication
- HTTP Post and Headers
- JavaScript in HTML
- Conversion Trigger
- Links in HTML
- Page Header and Footer
- Partial Page Conversion
- Repeating Table Header and Footer
- Merging Multiple HTML pages
- Generating Page Images
- Using with PDF Creator
- Creating Interactive Form Elements
- Working with Secure Pages
- Using HtmlToPdfSession object
- Troubleshooting HTML to PDF
- Debugging HTML to PDF
- Using PDF Creator
- Working with Existing PDF Files
- Using in Web Application
- Advanced Topics
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
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:
<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:
<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.