Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to have different content in the header (or footer) of different PDF pages?

0
Posted

Is it possible to have different content in the header (or footer) of different PDF pages?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123