Using redaction filters

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Redaction MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-redaction -- dnx GroupDocs.Redaction.Mcp --yes
Folders, licensing and more →

GroupDocs.Redaction lets you set a page-based scope for a redaction, of two kinds:

  • Page range — a number of pages at a given offset from the beginning or the end of the document;
  • Page area — a top-left-based rectangle applied on each page.

All filters inherit from RedactionFilter and are passed as an array to the filters property of ReplacementOptions. Combine both kinds in one set to scope a redaction to an area on specific pages.

Supported formats

Redaction filters apply to PDF documents. Support for additional formats is planned for future releases of GroupDocs.Redaction.

In this section

  • Use PDF Redaction Filters — a runnable example that combines a page-range filter and a page-area filter to scope a redaction in a PDF.