Rank: Newbie Groups: Member
Joined: 11/23/2015 Posts: 2
|
Hi,
I've read your forums and require to output html in landscape mode - using the recommended: HtmlToPdf.Options.PageSize = new SizeF(PdfPageSizes.A4.Height, PdfPageSizes.A4.Width) seems to produce the report with blank pages.
ie: if I simply use: PageSize = PdfPageSizes.A4 the report renders fine, but when i change the orientation as above to landscape blank pages render with no content in them!
My conversioncode is:
var conversionOptions = new HtmlToPdfOptions { AutoFitX = HtmlToPdfAutoFitMode.ShrinkToFit, RetrieveNodeText = false, PageSize = PdfPageSizes.A4, OutputArea = new RectangleF(0.5f, 0.5f, 7.5f, 10f) }; HtmlToPdf.ConvertHtml(html, pDoc, conversionOptions);
I am using Eo.Pdf Runtime Version: v2.0.50727 Version: 15.3.24.0
Regards, Matt
|
Rank: Newbie Groups: Member
Joined: 11/23/2015 Posts: 2
|
Pls ignore - it appears to be some further processing after the conversion that is causing the issue.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Great. Thank you very much for the update!
|