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
close icon

PDF files size

Hi,
anyone know if there is the possibility to optimyze the size of the pdf? In my test I have some issue with a too much big size (1,7 mb for a document of 20 pages).
Do you know else any tricks to reduce the conversion time?
Thanks in advance,

Marco.

1 Reply

KK Karthik Krishnaraj Syncfusion Team March 17, 2015 09:00 AM UTC

Hi Marco,

Thank you for using Syncfusion Products,

It is possible to reduce the size of the generated pdf, for this you need to use different compression level that would result in reduced size pdf. Please check with the below code snippet and let me know if these helps.

//Creates a new Pdf loaded document

PdfLoadedDocument ldoc = new PdfLoadedDocument("Sample.pdf");

//Set Compression level

ldoc.Compression = PdfCompressionLevel.Best;

//Save the document and dispose it.

ldoc.Save("Output.pdf");

 ldoc.Close();

Thanks,
Karthik.

Loader.
Live Chat Icon For mobile
Up arrow icon