Browse our Products
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
Product Page | Docs | Demos | API Reference | Blog | Free Support | Temporary License
GroupDocs.Redaction for Python via .NET is a document-sanitization API for permanently removing sensitive information. Redact text by exact phrase or regular expression, scrub or replace metadata, remove or rewrite annotations, black out image regions, delete whole pages, find text in scanned images with the OCR engine of your choice, and rasterize the result so nothing redacted can be recovered – across 40+ Word, Excel, PowerPoint, PDF, image and text formats through one unified API, with no MS Office, OpenOffice, or other external software required.
pip install groupdocs-redaction-net
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import ExactPhraseRedaction, ReplacementOptions
with Redactor("document.docx") as redactor:
redactor.apply(ExactPhraseRedaction("confidential", ReplacementOptions("[REDACTED]")))
redactor.save()
The package is a self-contained Python wheel that bundles the .NET 10 runtime and every native dependency (SkiaSharp, Aspose.Drawing) needed to load, redact, and save documents. No external software installation is required – just pip install and start redacting; pip also installs groupdocs-shared-net, the small package of modules every GroupDocs Python package shares. The wheels work across Python 3.5 - 3.14 on Windows x64, Linux x64, and macOS (Intel + Apple Silicon), with the same features on each: rasterizing to PDF and image-area redaction need neither System.Drawing nor libgdiplus.
For a complete list, with the operations each format supports, see supported formats.
| Category | Formats |
|---|---|
| Word Processing | DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, ODT, OTT |
| Spreadsheets | XLS, XLSX, XLSM, XLSB, XLT, XLTX, XLTM, ODS, OTS, CSV, TAB |
| Presentations | PPT, PPTX, PPTM, PPS, PPSX, PPSM, POTX, POTM, ODP, OTP |
| Fixed-Layout | PDF, DJVU |
| Images | BMP, JPEG, PNG, GIF, TIFF, WEBP |
| Web & Text | HTML, MD, TXT |
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import ExactPhraseRedaction, ReplacementOptions
with Redactor("document.docx") as redactor:
# case-insensitive by default; pass True for case-sensitive
redactor.apply(ExactPhraseRedaction("Emily Johnson", True, ReplacementOptions("[CUSTOMER]")))
redactor.save()
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import RegexRedaction, ReplacementOptions
with Redactor("document.docx") as redactor:
# numbers (e.g. SSNs, IDs)
redactor.apply(RegexRedaction(r"\d{2,}", ReplacementOptions("[NUMBER]")))
# email addresses
redactor.apply(RegexRedaction(r"[\w.%+-]+@[\w.-]+\.[A-Za-z]{2,}", ReplacementOptions("[EMAIL]")))
redactor.save()
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import ExactPhraseRedaction, ReplacementOptions
from groupdocs.redaction.options.drawing import Color
with Redactor("document.pdf") as redactor:
redactor.apply(ExactPhraseRedaction("Top Secret", ReplacementOptions(Color.black)))
redactor.save()
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import EraseMetadataRedaction, MetadataSearchRedaction, MetadataFilters
with Redactor("document.docx") as redactor:
redactor.apply(EraseMetadataRedaction(MetadataFilters.ALL)) # wipe everything
redactor.apply(MetadataSearchRedaction(".*@acme\\.com", "[EMAIL]")) # rewrite by value pattern
redactor.save()
Office, OpenDocument and RTF files lose the properties the filter names. On engine 26.10 a PDF saved as PDF keeps the properties that only its document information dictionary holds, and images other than JPEG keep their EXIF data, although the redaction reports APPLIED: rasterize PDFs (the default of save()) and check image output.
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import ImageAreaRedaction, RegionReplacementOptions
from groupdocs.redaction.options.drawing import Point, Size, Color
with Redactor("scan.pdf") as redactor:
redactor.apply(ImageAreaRedaction(Point(50, 60), RegionReplacementOptions(Color.black, Size(200, 80))))
redactor.save()
By default save() rasterizes the result to a PDF and appends a _Redacted suffix. To keep the source format instead:
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import RegexRedaction, ReplacementOptions
from groupdocs.redaction.options import SaveOptions
with Redactor("document.docx") as redactor:
redactor.apply(RegexRedaction(r"\d+", ReplacementOptions("[NUM]")))
redactor.save(SaveOptions(rasterize_to_pdf=False, add_suffix=True)) # writes document_Redacted.docx
from groupdocs.redaction import Redactor
with Redactor("document.pdf") as redactor:
info = redactor.get_document_info()
print("Type:", info.file_type.file_format)
print("Pages:", info.page_count)
print("Size:", info.size, "bytes")
import io
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import ExactPhraseRedaction, ReplacementOptions
from groupdocs.redaction.options import SaveOptions
with open("document.docx", "rb") as src:
with Redactor(src) as redactor:
redactor.apply(ExactPhraseRedaction("secret", ReplacementOptions("[X]")))
buffer = io.BytesIO()
redactor.save(buffer, SaveOptions(rasterize_to_pdf=False)) # keep the original format
data = buffer.getvalue()
from groupdocs.redaction import Redactor
from groupdocs.redaction.options import LoadOptions, RedactorSettings
from groupdocs.redaction.redactions import ExactPhraseRedaction, ReplacementOptions
def accept(description):
print(description.redaction_type.name, description.original_text)
return "keep" not in (description.original_text or "") # False skips this match
with Redactor("document.docx", LoadOptions(), RedactorSettings(callback=accept)) as redactor:
redactor.apply(ExactPhraseRedaction("Emily Johnson", ReplacementOptions("[CUSTOMER]")))
redactor.save()
import io
from groupdocs.redaction import Redactor
from groupdocs.redaction.options import PreviewOptions, PreviewFormats
pages = {}
def create_page_stream(page_number):
pages[page_number] = io.BytesIO()
return pages[page_number]
with Redactor("document.docx") as redactor:
options = PreviewOptions(create_page_stream)
options.width, options.height = 480, 640 # both required
options.page_numbers = [1] # required
options.preview_format = PreviewFormats.PNG
redactor.generate_preview(options)
print(len(pages[1].getvalue()), "bytes of PNG")
GroupDocs.Redaction ships no OCR engine; an object with recognize(image_stream) reports the lines an OCR engine found and where. Report each line as one TextFragment: on engine 26.10 a phrase that spans two fragments is reported APPLIED but not painted. The OCR guide builds one on Tesseract.
from groupdocs.redaction import Redactor
from groupdocs.redaction.integration.ocr import RecognizedImage, TextFragment, TextLine
from groupdocs.redaction.options import LoadOptions, RedactorSettings
from groupdocs.redaction.options.drawing import Color, Rectangle
from groupdocs.redaction.redactions import ExactPhraseRedaction, ReplacementOptions
class MyOcr(object):
def recognize(self, image_stream):
image_bytes = image_stream.read() # pass these to your OCR engine
line = TextFragment("Emily Johnson", Rectangle(40, 40, 230, 40)) # one fragment per line
return RecognizedImage([TextLine([line])])
with Redactor("scan.png", LoadOptions(), RedactorSettings(ocr_connector=MyOcr())) as redactor:
print(redactor.apply(ExactPhraseRedaction("Emily Johnson", ReplacementOptions(Color.black))).status.name)
This package is designed for seamless integration with AI agents, LLMs, and automated code generation tools.
AGENTS.md in the package – AI coding assistants (Claude Code, Cursor, GitHub Copilot) auto-discover the API surface, usage patterns, and troubleshooting tips from the installed package{ "mcpServers": { "groupdocs-docs": { "url": "https://docs.groupdocs.com/mcp" } } }
https://docs.groupdocs.com/redaction/python-net/llms-full.txt.md to any docs URLThe API works without a license in evaluation mode, with these limitations:
TrialLimitationsException.get_document_info() raises At most 4 elements (for any collection) can be viewed in evaluation mode, and page and metadata redactions report FAILED or SKIPPED.The number of redactions and replacements is not limited. To remove these limitations, apply a license or request a temporary license:
from groupdocs.redaction import License
License().set_license("path/to/license.lic")
print(License().is_licensed)
Or set the environment variable, a file path or a URL, applied at the first call into the engine:
export GROUPDOCS_LIC_PATH="path/to/license.lic"
A licence from GROUPDOCS_LIC_PATH that cannot be applied raises LicenseError (from groupdocs.redaction) instead of running in evaluation mode silently; GROUPDOCS_LIC_STRICT=0 turns that into a LicenseWarning.
| Issue | Platform | Fix |
|---|---|---|
Trial mode allows opening up to 25 documents per process | All | Apply a license – License().set_license(...) or set GROUPDOCS_LIC_PATH |
At most 4 elements (for any collection) can be viewed in evaluation mode | All | Evaluation mode on a PDF of more than 4 pages, which also cuts long documents short: apply a license |
LicenseError on the first call | All | The licence GROUPDOCS_LIC_PATH names cannot be applied; the message says why |
TypeError: ... no overload matched with a Color, Point or Size | All | Import them from groupdocs.redaction.options.drawing, not groupdocs.pydrawing |
Process exits with code 134, Couldn't find a valid ICU package | Linux | apt-get install libicu-dev. Do NOT set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT |
A presentation (PPTX, PPT, ODP, …) fails to open with DllNotFoundException | Linux | apt-get install libfontconfig1: the presentation engine links fontconfig |
| Garbled text / missing fonts in output | Linux | apt-get install ttf-mscorefonts-installer fontconfig && fc-cache -f |
An Aspose/Drawing/SystemFontCache.xml appears in the working directory | Linux | The engine’s font cache goes there only when ~/.local/share cannot be created, as in a read-only home: the package creates the folder otherwise. Set XDG_DATA_HOME to a writable folder |
IncorrectPasswordException / PasswordRequiredException | All | Open with Redactor(path, LoadOptions(password="...")) |
libgdiplus, MS Office or other software neededColor, Point, Size (and the new Rectangle, Font, FontStyle) come from groupdocs.redaction.options.drawing, as the .NET API’s GroupDocs.Redaction.Options.Drawing. groupdocs.pydrawing types are refused with a TypeError, and from groupdocs.redaction import Color no longer works.RedactionDescription: redaction_type and action_type are enums (RedactionType.TEXT), no longer names, and replacement and details are new.PlatformNotSupportedException there.Also available for other platforms: .NET | Java | Node.js
Product Page | Docs | Demos | API Reference | Blog | Free Support | Temporary License
GroupDocs.Redaction GroupDocs.Total Python PyPi Document-Redaction Text-Redaction PDF Metadata-Removal Security
Self-contained Python wheel of GroupDocs.Redaction 26.11 for Windows (x64). Compatible with Python 3.5-3.14. No system packages required. pip also installs groupdocs-shared-net 26.11.0 or later from PyPI; for an offline install, download it as well. Redact sensitive content from documents.
Added: 19/11/2026
Downloads:
File Size: 145.38MB
Self-contained Python wheel of GroupDocs.Redaction 26.11 for Linux (x64). Compatible with Python 3.5-3.14. Requires ICU and fontconfig (apt-get install libicu-dev libfontconfig1; fontconfig serves presentations: without it no PowerPoint or OpenDocument presentation opens). pip also installs groupdocs-shared-net 26.11.0 or later from PyPI; for an offline install, download it as well. Redact sensitive content from documents.
Added: 19/11/2026
Downloads:
File Size: 145.97MB
Self-contained Python wheel of GroupDocs.Redaction 26.11 for macOS amd64 (Intel). Compatible with Python 3.5-3.14. No system packages required. pip also installs groupdocs-shared-net 26.11.0 or later from PyPI; for an offline install, download it as well. Redact sensitive content from documents.
Added: 19/11/2026
Downloads:
File Size: 148.15MB
Self-contained Python wheel of GroupDocs.Redaction 26.11 for macOS arm64 (Apple Silicon). Compatible with Python 3.5-3.14. No system packages required. pip also installs groupdocs-shared-net 26.11.0 or later from PyPI; for an offline install, download it as well. Redact sensitive content from documents.
Added: 19/11/2026
Downloads:
File Size: 145.78MB
Self-contained Python wheel of GroupDocs.Redaction 26.6 for Windows (x64). Compatible with Python 3.5-3.14. No external dependencies required. Redact sensitive content from documents.
Added: 12/6/2026
Downloads:
File Size: 113.76MB
Self-contained Python wheel of GroupDocs.Redaction 26.6 for Linux (x64). Compatible with Python 3.5-3.14. Requires libgdiplus, libfontconfig1, and fonts (e.g. ttf-mscorefonts-installer). Redact sensitive content from documents.
Added: 12/6/2026
Downloads:
File Size: 112.92MB
Self-contained Python wheel of GroupDocs.Redaction 26.6 for macOS arm64 (Apple Silicon). Compatible with Python 3.5-3.14. Requires mono-libgdiplus (brew install mono-libgdiplus). Redact sensitive content from documents.
Added: 12/6/2026
Downloads:
File Size: 112.74MB
Self-contained Python wheel of GroupDocs.Redaction 26.6 for macOS amd64 (Intel). Compatible with Python 3.5-3.14. Requires mono-libgdiplus (brew install mono-libgdiplus). Redact sensitive content from documents.
Added: 12/6/2026
Downloads:
File Size: 114.86MB
This wheel contains GroupDocs.Redaction version 25.10, compatible with Python 3 and optimized for Windows 32-bit systems.
Added: 18/10/2025
Downloads:
File Size: 109.9MB
This wheel contains GroupDocs.Redaction for Python via .NET 25.10, built for Windows and targeting the AMD64 architecture.
Added: 18/10/2025
Downloads:
File Size: 115.27MB
This wheel contains GroupDocs.Redaction for Python via .NET version 25.10 built for MacOS and targeting the ARM64 architecture.
Added: 18/10/2025
Downloads:
File Size: 116.22MB
This wheel contains GroupDocs.Redaction version 25.5, compatible with Python 3 and optimized for Windows 32-bit systems.
Added: 21/5/2025
Downloads:
File Size: 109.96MB
This wheel contains GroupDocs.Redaction for Python via .NET 25.5, built for Windows and targeting the AMD64 architecture.
Added: 21/5/2025
Downloads:
File Size: 115.3MB
This wheel contains GroupDocs.Redaction for Python via .NET version 25.5 built for MacOS and targeting the ARM64 architecture.
Added: 21/5/2025
Downloads:
File Size: 116.22MB