Key Features of GroupDocs.Redaction for Python via .NET

Protect Sensitive Images in EXCEL Files with Overlays Using Python

Secure your personal and business images in EXCEL files with Python. Get reliable protection with our easy-to-use tools.

Protect Data in Excel Files

GroupDocs.Redaction for Python via .NET helps Python via .NET apps hide private information in documents quickly and easily.

  1. Create a Redactor instance and load the Excel file.
  2. Set redaction options as needed.
  3. Select the image area and choose overlay color.
  4. Apply the redaction and save the edited file.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd

# Cover image areas in EXCEL

# Adjust overlay size and color
replacement_size = grd.Size(100, 100)
color = grd.Color.from_argb(255, 220, 20, 60)
replacement_options = grr.RegionReplacementOptions(color, replacement_size)

# Choose area to cover
replacement_point = grd.Point(200, 200)
redaction = grr.ImageAreaRedaction(replacement_point, replacement_options)
        
# Open document with Redactor
with gr.Redactor("input.xslx") as redactor:

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

Hide or Remove Sensitive Content

GroupDocs.Redaction for Python via .NET lets you protect documents by hiding or deleting sensitive data in various formats. Keep files safe and clear for sharing.

Feature-Rich Redaction Tools

Edit Text Safely

Find sensitive text in documents and replace it to protect privacy.

Hide Image Parts

Cover selected image areas or entire visuals with overlays.

Delete Hidden Metadata

Erase invisible metadata fields to prevent data leaks.

Use Overlays to Hide Image Data

This example shows how to apply overlays to cover sensitive images in documents.

Python

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

# Set overlay color, size, and position
replacement_size = grd.Size(300, 30)
color = grd.Color.from_argb(255, 220, 20, 60)
replacement_options = grr.RegionReplacementOptions(color, replacement_size)
replacement_point = grd.Point(20, 125)
redaction = grr.ImageAreaRedaction(replacement_point, replacement_options)

# Pick a specific image section on page one
redaction.filters = [
    grr.PageRangeFilter(grr.PageSeekOrigin.BEGIN, 0, 1),
    grr.PageAreaFilter(grd.Point(0, 300), grd.Size(600, 600))
]

# Load document for editing
with gr.Redactor("source.xslx") as redactor:

    # Apply the overlay to hide it
    result = redactor.apply(redaction)

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

About GroupDocs.Redaction for Python via .NET

GroupDocs.Redaction for Python via .NET provides Python developers with simple tools to hide or remove sensitive content in EXCEL files. Cover images, text, and metadata to protect your documents.
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.

Hide Content in EXCEL with Python

With Python, you can easily hide or delete sensitive information in EXCEL files. An effective way to ensure document security.

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