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

Hide Text in POWERPOINT Presentations with Python

Use Python and GroupDocs.Redaction for Python via .NET to add overlays and hide sensitive text in your POWERPOINT slides.

Redact Information in Powerpoint Files

With GroupDocs.Redaction for Python via .NET, you can prepare Powerpoint files for sharing using simple redaction steps.

  1. Create a new Redactor and load your file.
  2. Choose what to hide and how to apply it.
  3. Add the search pattern and set an overlay color.
  4. Apply redaction and save your updated document.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd

# Cover sensitive text in POWERPOINT using overlays

# Set up how redaction will work
# Pick the text and color to hide it
color = grd.Color.from_argb(255, 220, 20, 60)
repl_opt = grr.ReplacementOptions(color)
        
redaction = grr.ExactPhraseRedaction("Text to hide", repl_opt)

# Use Redactor to load your presentation
with gr.Redactor("input.pptx") as redactor:

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

Easy Ways to Hide Information

GroupDocs.Redaction for Python via .NET makes it simple to hide or remove sensitive parts of documents — perfect for legal, personal, or business use.

Useful tools for privacy

Find and replace text

Search for words or numbers and hide or change them.

Cover up parts of images

Draw overlays to hide full images or selected spots.

Remove hidden info

Delete metadata like names or timestamps that users don’t see.

Redact Using Regex Search

See how regular expressions help you find and hide text in your slides.

Python

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

# Define the 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 POWERPOINT file
with gr.Redactor("source.pptx") as redactor:

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

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

Learn More About GroupDocs.Redaction for Python via .NET

GroupDocs.Redaction for Python via .NET helps Python developers clean POWERPOINT presentations by covering or deleting text, images, and hidden info.
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 Text in POWERPOINT with Python

Use Python to add overlays or remove content from your POWERPOINT slides to keep private data safe.

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