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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting a page size

Thread ID:

Created:

Updated:

Platform:

Replies:

81034 May 8,2009 07:44 PM UTC May 11,2009 12:44 PM UTC WinForms 1
loading
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

Hi,

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);
doc.Pages.Add();

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.
http://help.syncfusion.com/ug_72/pdf/SetGraphicUnits.html

Best Regards,
Bhuvana

CONFIRMATION

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.

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

;