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. Image for the cookie policy date

Setting PDF document resolution to 300 dpi

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

1 Reply

SL Sowmiya Loganathan Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon