We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting a page size

Thread ID:





81034 May 8,2009 07:44 PM UTC May 11,2009 12:44 PM UTC WinForms 1
Tags: PDF
Steven Britton
Asked On May 8, 2009 07:44 PM UTC

How do you set a custom page width and height?

I am using version 7.2

Bhuvaneswari P [Syncfusion]
Replied On May 11, 2009 12:44 PM UTC


Thank you for using Syncfusion Software.

Please use the below code snippet to set predefined and custom page size

PdfDocument doc = new PdfDocument();

//To set predefine page size
doc.PageSettings.Size = PdfPageSize.B2;

//To set custom page size
doc.PageSettings.Size = new SizeF(400, 400);

Also, in Essential PDF everything is Point based, so please specify the units in Points. For more information regarding PDF units please refer the below URL.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon