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

Setting PDF document resolution to 300 dpi

Thread ID:

Created:

Updated:

Platform:

Replies:

149857 Dec 11,2019 06:19 PM UTC Dec 12,2019 11:38 AM UTC WinForms 1
loading
Tags: PDF
Bhaswati Karmakar
Asked On December 11, 2019 06:19 PM UTC

Hi,
After merging multiple PDF documents into one PDF document using Syncfusion, how can the resolution of the new PDF document be set to 300 dpi ?


thanks
Bhaswati

Sowmiya Loganathan [Syncfusion]
Replied On December 12, 2019 11:38 AM UTC

Hi Bhaswati, 

Thank you for contacting Syncfusion support.  

We have analyzed your requirement, but we could not able to set the resolution for PDF document. However we can able to set the resolution for image which has been exported from PDF document. Please refer the below code snippet for more details, 

//Load the existing PDF document 
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("HTTP Succinctly.pdf"); 
 
//Get the PDF page count 
int count = loadedDocument.Pages.Count; 
 
//Convert each page to image file 
for (int i = 0; i < count; i++) 
{ 
    //Export PDF page to image 
    Image image = loadedDocument.ExportAsImage(i, 300, 300); 
 
    //Save the exported image 
    image.Save("Image" + i + ".png", System.Drawing.Imaging.ImageFormat.Png); 
 
} 
 

We can also set the zoom level to view page of PDF document. Please refer the below UG documentation link for more details, 

Please let us know if you need any further assistance on this.  

Regards, 
Sowmiya Loganathan 


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.

Please sign in to access our forum

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon