Category / Section
How to add different headers and footers in different pages while converting HTML to PDF
1 min read
Adding different header/footer for each PDF page while converting HTML to PDF is possible by using WebKit HTML converter.
Our WebKit HTML converter do not have direct support for adding different header/footer for each PDF pages. As a workaround, it can be achieved by using PdfTemplate, but it has some limitation such as Hyperlinks, annotations, Pdf form fields and some advanced features will not be preserved in the output document.
Assemblies Required
- Syncfusion.Compression.Base.dll
- Syncfusion.HtmlConverter.Base.dll
- Syncfusion.Pdf.Base.dll
- QtBinaries assemblies
All the above mentioned assemblies can be get by installing the WebKit installer available in the below link.
WebKit HTML Converter: https://www.syncfusion.com/downloads/latest-version
Working Sample can be downloaded from the below link.