Hi,
Thanks for posting in the forum. Please do not make duplicate posts in the forum. We have deleted your other post and the other user name. As to your questions:
1. You will need to handle ASPXToPDF's AfterRender event and then add additional contents to the page. For example, you can do something like this:
Code: C#
//Get the conversion result
HtmlToPdfResult result = (HtmlToPdfResult)ASPXToPDF1.Result;
//Loop through all pages of the result document
PdfDocument doc = result.PdfDocument;
for (int i = 0; i < doc.Pages.Count; i++)
{
PdfPage page = doc.Pages[i];
//Set your output area correctly
HtmlToPdf.Options.OutputArea = .....
//Output some HTML into the page
HtmlToPdf.ConvertHtml(header_html, page);
}
The main difference here is the second argument of ConvertHtml is a PdfPage object, not a PdfDocument object. If the header is very simple, then you can also use the "PDF Creator" interface to generate the output. PDF Creator interface is much less powerful than HTML to PDF converter but is also much faster.
2. Please see here for more information about page zooming:
http://www.essentialobjects.com/doc/4/htmltopdf/auto_fit.aspxYou will need to set the HtmlToPdf.Options properties before you call RenderAsPDF.
Hope this helps. Please feel free to let us know if you have any more questions.
Thanks!