This sample shows how to optimize and compress PDF documents using Docotic.Pdf library.
The Compress PDF documents in C# and VB.NET article contains additional information.
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