Skip to content

Instantly share code, notes, and snippets.

@documentize
Created February 25, 2026 07:46
Show Gist options
  • Select an option

  • Save documentize/1eead79517cb2c0287e1e145c13bbd78 to your computer and use it in GitHub Desktop.

Select an option

Save documentize/1eead79517cb2c0287e1e145c13bbd78 to your computer and use it in GitHub Desktop.
The example demonstrates how to Compress PDF document.
// Create CompressOptions object to set instructions
var options = new CompressOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Compress(options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment