Explore GroupDocs.Redaction for Python via .NET Features

Cover Private Images in POWERPOINT Documents Using Python Overlays

Keep sensitive images safe in POWERPOINT files with Python. Simple tools designed for strong data protection.

Keep Your Powerpoint Documents Safe

GroupDocs.Redaction for Python via .NET makes it easy for Python via .NET apps to protect sensitive content in documents.

  1. Create a Redactor object and load the Powerpoint file.
  2. Adjust redaction options to match your requirements.
  3. Select the image area and pick an overlay color.
  4. Apply the redaction and save your document.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd

# Mask image content in POWERPOINT files

# Set up 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 hide
replacement_point = grd.Point(200, 200)
redaction = grr.ImageAreaRedaction(replacement_point, replacement_options)
        
# Load file with Redactor
with gr.Redactor("input.pptx") as redactor:

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

Protect Private Data in Documents

GroupDocs.Redaction for Python via .NET allows you to hide or erase sensitive content in different file formats. Keep your files secure and ready for sharing.

All-in-One Redaction Features

Search and Edit Text

Find private text in documents and replace it to ensure privacy.

Mask Image Areas

Cover entire images or selected parts with overlays to keep them private.

Erase Hidden Metadata

Delete metadata to prevent accidental information sharing.

Use Overlays to Hide Image Data

This example shows how to protect sensitive images in documents using overlays.

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 dimensions, position, and color
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)

# Mark image area on the first page
redaction.filters = [
    grr.PageRangeFilter(grr.PageSeekOrigin.BEGIN, 0, 1),
    grr.PageAreaFilter(grd.Point(0, 300), grd.Size(600, 600))
]

# Open the document for redaction
with gr.Redactor("source.pptx") as redactor:

    # Apply overlay to mask data
    result = redactor.apply(redaction)

    # Save the final document
    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

What is GroupDocs.Redaction for Python via .NET?

GroupDocs.Redaction for Python via .NET equips Python developers with tools to hide or delete sensitive content in POWERPOINT files. Protect your documents by covering private text, images, and metadata.
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.

Keep POWERPOINT Files Secure with Python

With Python, you can easily hide or remove sensitive data in POWERPOINT files. Trusted solution for protecting important documents.

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