This sample shows how to optimize and compress PDF documents using Docotic.Pdf library.
NOTE: To get proper results please use this sample code with a license key. You can get a free license key here: https://bitmiracle.com/pdf-library/download
Docotic.Pdf supports different compression methods. You can use all of them to get the best compression ratio for your PDF documents:
- remove duplicate PDF objects
- compress images (if any)
- optimize PDF objects
- remove structure information
- flatten PDF form fields and annotations
- remove metadata
- unembed fonts
- remove unused resources
- remove unused font glyphs (font subsetting)
- remove private application data
- merge page content streams