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 allows you to set the page-based scope for your redaction of two types:

  • page range, a given number of pages at certain offset from the beginning or the end of the document;
  • page area (on each page), which is a top-left based rectangle.

All filters inherit from RedactionFilter and as an array are set to Filters property of the ReplacementOptions.

You can combine these filters in one set in order to set the scope of redaction to an area on a specific page. For more details, see Use PDF redaction filters and Use PageAreaRedaction.

Supported formats

Page filters apply to formats that expose page (or slide) layout and image placement, including:

  • PDF
  • Presentations (PPTX and related)
  • Raster images (when using area / OCR redactions with page filters)

For formats listed with Page Filters in Supported document formats, coordinates are based on the page (or visible image) size. Embedded images that differ in pixel size from their on-page shape are redacted using page placement.

Learn more

You can find details and examples of using redaction filters with GroupDocs.Redaction for Node.js via Java in one of these guides: