Compress PDF

The PDF Manager is a comprehensive tool that enhances PDF documents through advanced optimization techniques. These operation Compress PDF documents, making them easier to store, share, and view.

Compress PDF

Compress PDF document when feasible by eliminating unused page resources, merging identical assets, and discarding redundant objects.

  1. Create an CompressOptions object to configure optimization settings.
  2. Add the input file and specify the output file location.
  3. Use the SetCropBox method to define the crop area.
  4. Run the Compress method of PdfManager.
1// Create CompressOptions object to set instructions
2var options = new CompressOptions();
3// Add input file path
4options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
5// Set output file path
6options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
7// Perform the process
8PdfManager.Compress(options);

Key Features:

  • Compressing: Remove unused page resources and objects from the document.