What You Get with GroupDocs.Redaction for Python via .NET

Overlay Text Hiding for EXCEL in Python

Write Python code to hide text and secure information in your EXCEL files. Keep your documents safe and clean.

Hide Sensitive Data in Excel

GroupDocs.Redaction for Python via .NET makes it easy for Python via .NET developers to prepare documents before sharing.

  1. Create a Redactor and open your Excel file.
  2. Choose the redaction settings that fit your task.
  3. Enter the text or phrase to cover and pick a color.
  4. Apply redaction and save the file.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd

# Use overlays to hide text in EXCEL

# Pick your redaction settings
# Choose what to hide and a color to use
color = grd.Color.from_argb(255, 220, 20, 60)
repl_opt = grr.ReplacementOptions(color)
        
redaction = grr.ExactPhraseRedaction("Text to hide", repl_opt)

# Start by loading your file with Redactor
with gr.Redactor("input.xslx") as redactor:

    # Apply changes and save the file
    result = redactor.apply(redaction)
    redactor.save()
pip install groupdocs-redaction-net
click to copy
copied
More examples Documentation

Helpful Tools for Redacting Data

GroupDocs.Redaction for Python via .NET lets you hide or remove data in documents while keeping the layout and content clear.

Built to protect your files

Hide or change text

Find and replace any part of the text that needs to be hidden.

Cover images and visuals

Add overlays to remove sensitive parts of pictures or charts.

Clear hidden metadata

Remove background info like author names or timestamps.

Redact Using Regex

Learn how to use regex patterns to find and hide content.

Python

import groupdocs.redaction as gr
import groupdocs.redaction.options as gro
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd

# Add the regex pattern and color settings
color = grd.Color.from_argb(255, 220, 20, 60)
repl_opt = grr.ReplacementOptions(color)

redaction = grr.RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", repl_opt)

# Open the file you want to clean up
with gr.Redactor("source.xslx") as redactor:

    # Apply the redaction
    result = redactor.apply(redaction)

    # Save the redacted version
    so = gro.SaveOptions()
    so.add_suffix = True
    so.rasterize_to_pdf = False
    result_path = redactor.save(so)
pip install groupdocs-redaction-net
click to copy
copied
More examples Documentation

Why Use GroupDocs.Redaction for Python via .NET

GroupDocs.Redaction for Python via .NET is built for Python developers who need to hide or remove content in EXCEL files. Work with text, images, and metadata easily.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Redaction for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Protect EXCEL with Python Redactions

Hide content in EXCEL using square overlays or remove it completely with features from Python.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English