Welcome Guest Search | Active Topics | Sign In | Register

PageSize and Orientation Options
Matt
Posted: Monday, November 23, 2015 9:04:46 PM
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
Matt
Posted: Monday, November 23, 2015 10:19:46 PM
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.
eo_support
Posted: Tuesday, November 24, 2015 10:24:19 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Great. Thank you very much for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.