Hi,
Yes. You will need to do it like this:
1. Set HtmlToPdf.Options.StartPosition to positive number to reserve extra space on the top of the first page;
2. Call HtmlToPdf.ConvertHtml/ConvertUrl to convert the main contents WITHOUT using the built-in header/footer feature. So the output after this call does not have any header/footers;
3. Call HtmlToPdf.ConvertHtml again in a loop that loops through all pages to add your header/footer. The code will be something like this:
Code: C#
//Loop through all pages
foreach (PdfPage page in doc.Pages)
{
//Setting output area to the header/footer area of the page
HtmlToPdf.Options.OutputArea = ....
//Add header/footer to the page. Note the second argument is the page
HtmlToPdf.ConvertHtml(header, page);
}
Hope this helps. Please feel free to let us know if you have any more questions.
Thanks!