Subject: How to open an existent pdf document and compress it?
Date: 2015-10-15 16:50:15
From: Alvimar Silva
Source: open-existent-pdf-document-compress
----------------------------------------------------------------------

How to open an existent pdf document and compress it?

The code below did not reduce the file size.

PdfImportedDocument doc = new PdfImportedDocument(file);
doc.CompressionLevel = PdfCompressionLevel.Best;
doc.Save(file);
doc.Dispose();

Thanks!

---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index