I'm having a little difficulty setting the header and footer for my PDF - the page content and the header ends up overlapping.
My header is an image with a height of 50px, footer is an image with a height of 10px.
Below is a snippet of my code (vb.net):
Code: Visual Basic.NET
EO.Pdf.HtmlToPdf.Options.PageSize = New System.Drawing.SizeF(8.5F, 11.0F)
EO.Pdf.HtmlToPdf.Options.OutputArea = New System.Drawing.RectangleF(0.5F, 0.5F, 7.5F, 10.0F)
EO.Pdf.HtmlToPdf.Options.HeaderHtmlFormat = "<img src=blah blah blah>"
EO.Pdf.HtmlToPdf.Options.FooterHtmlFormat = "<img src= blah blah blah>"
ASPXToPDF1.RenderAsPDF()
How would I prevent the header from overlapping with the content?
Is there a way for me to define the top and bottom margin separately?
TIA