Welcome Guest Search | Active Topics | Sign In | Register

Setting Page Sizes Options
Jamie Hassall
Posted: Wednesday, April 17, 2013 8:54:52 AM
Rank: Newbie
Groups: Member

Joined: 6/2/2009
Posts: 6
Hi,

I'm trying to dynamically set the page size of a PDF document to match a4 settings. The document in question was saved at a5 dimensions and i need to change it back.

I think I can achieve this using the Page.Size settings but nothing seems to be working could you point me in the right direction please, I'm trying something along the following lines:

docPDF = New EO.Pdf.PdfDocument(strFile)
socPDF.Pages(0).Size = ??

I can't workout what needs to go in the above section, I've tried setting it to match New System.Drawing.SizeF(11.0F, 8.5F) (as used in the render object) but it doesn't work, any advice would be greatly appreciated.

Thanks
eo_support
Posted: Wednesday, April 17, 2013 9:46:26 AM
Rank: Administration
Groups: Administration

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

Please see here for how to set page size:

http://www.essentialobjects.com/doc/4/htmltopdf/page_size.aspx

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.