We are testing out EO.PDF and really like what it can do for us, but one issue I am having is that when I tell it to save only a specific area it keeps the spacing of the other areas, while not displaying the content.
Basically, we have a master page with a header, left navigation area, and a footer. The content for these areas doesn't display, but the spacing for the navigation area does as well as the background image from an outer div.
Code: C#
HtmlToPdf.Options.PageSize = PdfPageSizes.Letter;
HtmlToPdf.Options.AutoFitX = HtmlToPdfAutoFitMode.ScaleToFit;
HtmlToPdf.Options.VisibleElementIds = "printinvoice";
ASPXToPDF1.RenderAsPDF("Invoice-" + TransactionID + ".pdf");
I have also tried adding the following:
Code: C#
// Test to see if this helps
HtmlToPdf.Options.InvisibleElementIds = "header,sidebar,footer";
I can provide a sample of the PDF, as well as additional HTML from the master file and page.
-Tim