Skip to content

Instantly share code, notes, and snippets.

@documentize
Last active March 10, 2026 14:06
Show Gist options
  • Select an option

  • Save documentize/1285bb37e22d412ea692115cfa280858 to your computer and use it in GitHub Desktop.

Select an option

Save documentize/1285bb37e22d412ea692115cfa280858 to your computer and use it in GitHub Desktop.
The example demonstrates how to Flatten fields in PDF file.
// Create FlattenFieldsOptions object to set instructions
var options = new FlattenFieldsOptions();
// 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
PdfForm.Flatten(options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment