Skip to content

Instantly share code, notes, and snippets.

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

  • Save documentize/2e73eac75e376c767d018ece1f9e2f8a to your computer and use it in GitHub Desktop.

Select an option

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