PDF: Optimize and compress PDF document
In This Topic
Under optimizing and compressing of PDF document is mentioned some actions, which lead to reducing of size of PDF document. To optimize a PDF document the SDK can perform the following actions:
- remove unused objects from PDF document
- remove broken bookmarks and links
- remove embedded thumbnails of PDF pages
- remove annotations
- remove bookmarks
- remove the document metadata
- remove the embedded files from PDF document
- compress data
- re-compress data with more optimal compression algorithm
- divide image resources to layers using MRC compression algorithm
- reduce the resolution of image resources
- reduce the color depth of image resources
SDK has many classes and methods, which allow to reduce the PDF document size. The
PdfDocumentCompressorCommand class is the PDF processing command that simplifies the PDF document compression process and contains all settings in one class.
The SDK provides WinForms PDF Compressor Demo and PDF Compressor Console Demo applications, which demonstrate how to reach the maximum compression for any PDF document. Source codes of the demo applications are available in C# and VB.NET.
Usage of MRC algorithm for optimizing and compressing PDF documents
To optimize PDF documents acquired from scanner very often is used MRC technology, which allows to divide the image acquired from scanner into layers and compress it the more optimal way. Detailed information about MRC compression algorithm, which is implemented in the SDK, can be found
here.