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.
Starting with the 25.05 release, GroupDocs.Redaction is now available for developers using the Python technology stack.
Download the Python wheel to start redacting documents using our powerful API.
GroupDocs.Redaction for Python via .NET is a document redaction API that allows you to remove sensitive or confidential information from a wide range of file formats, including Microsoft Word, Excel, PowerPoint, and PDF. It provides a unified, format-agnostic interface that supports multiple redaction types—such as text, metadata, annotations, and tabular data. You can export the redacted document in its original format or as a sanitized PDF with rasterized page images.
Get Started
Open
PyPi, search groupdocs-redaction-net , and install it. You can also use the command below.
Install
To install, run pip install groupdocs-redaction-net in a terminal or shell like Bash or PowerShell. This will download and reference GroupDocs.Redaction in your project.
Update
If you already have GroupDocs.Redaction for Python via .NET installed and want to upgrade to the latest version, simply run pip install groupdocs-redaction-net --upgrade.
Python via .NET API for Redacting Sensitive Data


GroupDocs.Redaction for Python via .NET is a powerful API designed to help you remove sensitive or confidential information from a wide range of document formats in Python applications built on the .NET platform. It supports various redaction types, including text, metadata, annotations, and image content. The API also integrates with OCR engines, enabling redaction of text within images, and allows you to remove entire pages or embedded images for thorough document sanitization. With broad format support and flexible features, GroupDocs.Redaction is an essential tool for organizations handling private or classified data.
Text Redactions
Exact Phrase Redaction
Find and redact specific phrases or text strings, with support for case sensitivity.
Regex Redaction
Use regular expressions to locate and redact text for flexible pattern matching.
Right-to-Left Support
Redact right-to-left languages such as Arabic and Hebrew.
Remove all metadata from a document, including author, creation date, and comments.
Use regular expressions to find and redact sensitive information within metadata fields.
Annotation Redactions
Delete Annotations
Remove all annotations, comments, and markup from documents.
Redact Annotation Text
Redact sensitive content within annotations while keeping the annotation structure.
Spreadsheet Redactions
Cell and Column Redaction
Redact specific cells or entire columns in Excel spreadsheets.
Filter by Worksheet
Apply redactions to selected worksheets in Excel files.
Image Redactions
Image Area Redaction
Mask specific areas of an image, such as headers or footers, using a colored overlay.
OCR-Based Redaction
Recognize and redact text within images using Optical Character Recognition (OCR).
EXIF Data Removal
Erase image metadata (like EXIF data), effectively acting as an “EXIF eraser.”
Page Redactions
Remove Pages
Delete selected pages from documents such as PDFs, presentations, or spreadsheets.
Page Area Filters
Apply redactions to specific regions of a page using coordinate-based filtering.
Embedded Image Redactions
Embedded Image Redaction
Redact images embedded in documents, including PDF, Microsoft Office, and OpenOffice formats.
Rasterization
Convert to Raster Images
Redact sensitive data and export documents as raster images to make content unsearchable.
Document Saving Options
Save redacted documents either in their original format for further editing or as raster images for enhanced security.
Support for OCR Engines
Third-Party OCR Integration
Integrate third-party OCR engines (such as Aspose.OCR or Microsoft Azure Computer Vision API) to detect and redact text from images or scanned PDFs.
Document Info Retrieval
Extract metadata and page count from any supported document format.
The following table indicates the file formats supported by GroupDocs.Redaction for Python via .NET.
Format | Description | Document body | Metadata | Annotations (comments) | Remarks | Embedded images | OCR | Remove Page | Page Filters |
---|
PDF | Saves the document as PDF (Adobe Portable Document) format | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
DOC | Microsoft Word 97 - 2007 Document. | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | |
DOT | Microsoft Word 97 - 2007 Template. | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | |
DOCX | Office Open XML WordprocessingML Document (macro-free) | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | |
DOCM | Office Open XML WordprocessingML Macro-Enabled Document | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | |
DOTX | Office Open XML WordprocessingML Template (macro-free) | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | |
DOTM | Office Open XML WordprocessingML Macro-Enabled Template | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | |
RTF | RTF format. | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | | |
XLSX | OOXML 2007-2010 | ✔️ | ✔️ | ✔️ | | | ✔️ | | |
XLSM | OOXML Macro Enabled Workbook | ✔️ | ✔️ | ✔️ | | | ✔️ | | |
XLTX | OOXML Workbook Template | ✔️ | ✔️ | ✔️ | | | ✔️ | | |
XLTM | OOXML Macro Enabled Workbook Template | ✔️ | ✔️ | ✔️ | | | ✔️ | | |
XLS | Excel Workbook 97-2003 | ✔️ | ✔️ | ✔️ | | | ✔️ | | |
XLT | Excel Workbook Template 97-2003 | ✔️ | ✔️ | ✔️ | | | ✔️ | | |
CSV | CSV (Comma Separated Value) file. | ✔️ | ✔️ | ✔️ | | | | | |
PPTX | OOXML Microsoft PowerPoint Presentations format | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
PPT | PowerPoint Presentation 97-2003 | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
PPSX | PowerPoint Open XML | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
POT | PowerPoint template files | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
PPS | Microsoft PowerPoint 97-2003 Slide Show | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
PPTM | Microsoft PowerPoint Open XML Macro-Enabled Presentation file | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
PPSM | Microsoft PowerPoint Open XML Macro-Enabled Slide Show file | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
POTM | Microsoft PowerPoint template | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ |
JPEG | The image file format was standardized by the Joint Photographic Experts Group. | ✔️ | ✔️ | | | ✔️ | | ✔️ | |
TIF/TIFF | Tagged Image File Format | ✔️ | ✔️ | | | ✔️ | ✔️ | ✔️ | |
PNG | Portable Network Graphics Image | ✔️ | ✔️ | | | ✔️ | | ✔️ | |
BMP | Bitmap Image Files | ✔️ | ✔️ | | | ✔️ | | ✔️ | |
GIF | Graphical Interchange Format Image | ✔️ | ✔️ | | | ✔️ | | | |
DJVU | DjVu Document Format | ✔️ | | | | ✔️ | | | |
System Requirements
GroupDocs.Redaction for Python via .NET does not require external software like Microsoft Word, Excel, or PowerPoint.
Requirements
- Python 3.9 or above
- .NET 6.0 Runtime or above
Supported Operating Systems
- Windows: Windows Server 2003 and later, Windows XP, Vista, 7, 8, 8.1, 10, 11 (x64, x86)
- Mac: Mac OS X (ARM64 architecture)
Development Environments
- Compatible with any text editor (e.g., Atom, Sublime, Visual Studio Code).
Apply Exact Phrase Redaction
This code sample demonstrates how to apply exact phrase redaction to a document by replacing a specific phrase with a custom string or a colored rectangle. The example shows how to use GroupDocs.Redaction for Python via .NET to redact sensitive information by identifying and replacing exact phrases.
import groupdocs.redaction as gr
import groupdocs.redaction.options as gro
import groupdocs.redaction.redactions as grr
# Learn how to use GroupDocs.Redaction for Python via .NET to apply exact phrase redaction to documents, replacing sensitive text with custom content or a colored block.
def run():
# Specify the redaction options
repl_opt = grr.ReplacementOptions("[personal]")
ex_red = grr.ExactPhraseRedaction("John Doe", repl_opt)
# Load the document to be redacted
with gr.Redactor("source.docx") as redactor:
# Apply the redaction
result = redactor.apply(ex_red)
# Save the redacted document
so = gro.SaveOptions()
so.add_suffix = True
so.rasterize_to_pdf = False
result_path = redactor.save(so)
This example shows how to remove sensitive metadata from a document using regular expressions. It targets specific fields, such as the author’s name, for redaction. The sample uses Python syntax to demonstrate metadata redaction with GroupDocs.Redaction for Python via .NET.
import groupdocs.redaction as gr
import groupdocs.redaction.options as gro
import groupdocs.redaction.redactions as grr
#Redact metadata in a document using GroupDocs.Redaction for Python via .NET. Remove or replace sensitive metadata fields like author names.
def run():
# Specify the redaction options
met_red = grr.MetadataSearchRedaction("Company Ltd.", "--company--")
# Load the document to be redacted
with gr.Redactor("source.pdf") as redactor:
# Apply the redaction
result = redactor.apply(met_red)
# Save the redacted document
so = gro.SaveOptions()
so.add_suffix = True
so.rasterize_to_pdf = False
result_path = redactor.save(so)
Redact Specific Areas in Document Images
This example demonstrates how to redact a specific area of an image embedded in a document by overlaying a colored rectangle, using GroupDocs.Redaction for Python via .NET.
import groupdocs.redaction as gr
import groupdocs.redaction.options as gro
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd
# Use GroupDocs.Redaction for Python via .NET to redact specific areas of images embedded in documents by overlaying colored rectangles on sensitive regions.
def run():
# Define the position on image
sample_point = grd.Point(516, 311)
# Define the size of the area which need to be redacted
sample_size = grd.Size(170, 35)
# Define color of redaction
color = grd.Color.from_argb(255, 220, 20, 60)
# Specify the redaction options
repl_opt = grr.RegionReplacementOptions(color, sample_size)
img_red = grr.ImageAreaRedaction(sample_point, repl_opt)
# Load the document to be redacted
with gr.Redactor("source.docx") as redactor:
# Apply the redaction
result = redactor.apply(img_red)
if (result.status != gr.RedactionStatus.FAILED):
# By default, the redacted document is saved in PDF format
result_path = redactor.save()
print(f"Document redacted successfully.\nCheck output in {result_path}")
else:
print(f"Redaction failed!")
Please check the GitHub Repository for other common usage scenarios.

This wheel contains GroupDocs.Redaction version 25.5, compatible with Python 3 and optimized for Windows 32-bit systems.
Added: 21/5/2025
Downloads: 
This wheel contains GroupDocs.Redaction for Python via .NET 25.5, built for Windows and targeting the AMD64 architecture.
Added: 21/5/2025
Downloads: 
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: 