Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Compress PDF document in .NET

This sample shows how to optimize size of an existing PDF document using Docotic.Pdf.

NOTE: To get proper results please use this sample code with a license key. You can get a free license key here: http://bitmiracle.com/pdf-library/download-pdf-library.aspx

Docotic.Pdf supports different compression methods. You can use all of them to get the best compression ratio:

  1. recompress images (if any)
  2. setup save options
  3. remove structure information
  4. flatten form fields
  5. remove metadata
  6. unembed fonts