Is it possible to have different content in the header (or footer) of different PDF pages?
By default the header (or footer) is the same for all the pages in the generated PDF document. The header and footer content is defined by the PdfHeaderOptions and PdfFooterOptions properties of the PdfConverter class. Starting with version 6.0 of the HTML to PDF Converter library it is possible to override the default header or footer for any of the pages of the generated PDF document. The Samples\WinForms\WinForms_HtmlInHeaderAndFooter sample from the installation folder contains sample code for how to alternate the header and footer content on odd and even pages of the generated PDF document. The only limitation is that the header or footer height must be the same on all the PDF pages.
Related Questions
- I would like to have a consistent header across my entire portal site, including pages and content areas. How do I do that?
- Can the converter render a HTML string or an URL in the header and footer of the generated PDF document?
- Is it possible to change / adapt header and footer in the printed document?