Welcome Guest Search | Active Topics | Sign In | Register

HtML- to PDF LAnscape ? Options
Sebo Zoltan
Posted: Friday, April 29, 2011 7:38:09 AM
Rank: Newbie
Groups: Member

Joined: 4/29/2011
Posts: 1
is there a options to set the pdf to landscape ?
thanks
eo_support
Posted: Friday, April 29, 2011 7:41:59 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi,

Yes. You just set the PageSize differently. For example:

Code: C#
HtmlToPdf.Options.PageSize = new SizeF(
    PdfPageSizes.A4.Height,  PdfPageSizes.A4.Width);


Note that it passes A4.Height as the paper width and A4.Width to the paper height.

Thanks


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.