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

How to Change PdfPage Graphics DPI

Thread ID:

Created:

Updated:

Platform:

Replies:

93283 Mar 8,2010 01:44 PM UTC Mar 11,2010 08:38 AM UTC Windows Forms 1
loading
Tags: PDF
Vijay Bhaskar
Asked On March 8, 2010 01:44 PM UTC

Hi,

Default Resolution of PdfPage.Graphics is 90 DPI. Can i change that to 300 DPI

Thanks & Regards,
Vijay

Karthik M [Syncfusion]
Replied On March 11, 2010 08:38 AM UTC

Hi Vijay,

Could you please clarify whether you are looking for changing the default zoom factor of the generated document ? If so, the following code-snippet would do that.

[Code Snippet]

//Create a new document.
PdfDocument document = new PdfDocument();

//Add a new page to the document.
PdfPage page = document.Pages.Add();

//Create a new destination and set its zoom factor.
PdfDestination dest = new PdfDestination(page);
dest.Zoom = 3f;

//Add action to the document.
document.Actions.AfterOpen = new PdfGoToAction(dest);

//Save and close the document.
document.Save("Sample.pdf");
document.Close(true);

If this is not what you are looking for, then could you please provide us some further details on what you are trying to achieve along with the sample pdf documents.

Thanks,
Karthik

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

;