GroupDocs.Redaction for Python via .NET V26.6
Released: Jun 12, 2026
V26.6 中的更新
特性
- Added the full redaction capabilities of the underlying .NET library to Python, shipped as a self-contained wheel on PyPI.
- Text redaction - Replace or hide text matched by an exact phrase (case-insensitive or case-sensitive, including right-to-left scripts) or a regular expression. Use a replacement string or draw a filled color box over the match.
- Metadata redaction - Erase metadata wholesale or by filter, or rewrite values that match a pattern.
- Image-area and annotation redaction - Black out a fixed rectangle on a page, rewrite or delete annotations, and clean embedded image metadata.
- Page removal - Remove pages or page ranges from the start or end of a document.
- Rasterization to PDF - By default, save() rasterizes the redacted document to a PDF and appends a _Redacted suffix so the underlying data cannot be recovered. Rasterization supports anti-extraction effects (noise, tilt, border, grayscale) and adjustable PDF/A compliance. Pass SaveOptions(rasterize_to_pdf=False) to keep the original format instead.
- Reusable redaction policies - Describe a set of redactions as a RedactionPolicy, built in memory or loaded from an XML file, and apply it across many documents in a single call.
- Pythonic, AI-friendly API - The entire .NET API is exposed through Python-native naming: classes use PascalCase, methods and properties use snake_case (auto-mapped to the underlying .NET PascalCase), and enum values use UPPER_SNAKE_CASE. The wheel bundles an AGENTS.md reference (discovered at groupdocs/redaction/AGENTS.md) for AI coding assistants such as Claude Code, Cursor, and GitHub Copilot, and the documentation is available in an LLM-optimized form and via the GroupDocs MCP server.