What You Can Do with GroupDocs.Redaction for Python via .NET

Protect Text in PPTX with Overlays and Python

Use GroupDocs.Redaction for Python via .NET and Python to hide private info in PPTX presentations by covering it with color blocks.

Redact Private Info in Pptx

Use GroupDocs.Redaction for Python via .NET to protect your presentations in a few simple steps.

  1. Create a Redactor and load the file you want to edit.
  2. Choose the redaction settings that match your needs.
  3. Set the text pattern and choose a color for the overlay.
  4. Apply redaction and save your changes.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd

# Use overlays to hide text in PPTX

# Define redaction settings
# Choose the text and color
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.pptx") as redactor:

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

More Redaction Options

GroupDocs.Redaction for Python via .NET gives you tools to hide or clean up data in different file formats without touching the layout.

Useful features for privacy

Change or Hide Text

Protect sensitive info by editing or hiding it from view.

Hide Images or Parts

Draw overlays to block full images or selected areas.

Remove Hidden Details

Erase metadata that may include private or system info.

Use Regex to Find Text

See how regular expressions help you find and hide sensitive content.

Python

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

# Set the text pattern and overlay color
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 your file for redaction
with gr.Redactor("source.pptx") as redactor:

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

    # Save the edited file
    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

What GroupDocs.Redaction for Python via .NET Offers

With GroupDocs.Redaction for Python via .NET, Python developers can cover or delete content in PPTX files—from text to images to hidden data.
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 PPTX Slides Using Python

Use Python to cover or erase private content in PPTX files while keeping the slides looking clean.

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