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

Find and Hide Sensitive Text in POWERPOINT Files with Python

Use GroupDocs.Redaction for Python via .NET and Python to remove or hide private content in your POWERPOINT files. Keep everything confidential whether it’s personal or work-related.

How to Clean Up Text in Powerpoint Files

Use GroupDocs.Redaction for Python via .NET inside your Python via .NET apps to remove or replace sensitive data fast.

  1. Start a Redactor and open your Powerpoint file.
  2. Pick the redaction options you need.
  3. Set the text you want to search and what to swap it with.
  4. Run redaction and save the final file.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr

# How to redact text in a POWERPOINT file

# Select the redaction settings you need
# Enter what text to find and what to replace it with
repl_opt = grr.ReplacementOptions("[redacted]")
        
redaction = grr.ExactPhraseRedaction("Text to hide", repl_opt)

# Load your file using the Redactor constructor
with gr.Redactor("input.pptx") as redactor:

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

More Tools to Remove Private Data

GroupDocs.Redaction for Python via .NET lets you clean private content across many formats. Perfect for sharing or archiving files safely.

Redaction options and tools

Find and replace text

Quickly swap out sensitive words or numbers. Works with regex and keyword search.

Hide parts of images

Cover specific areas with shapes or overlays. Adjust visuals to fit your needs.

Delete hidden info

Clear out metadata like who made the file, comments, or change history.

Pattern Redaction Using Regex

Use regular expressions to find and redact patterns like emails, contact info, or other private details.

Python

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

# Set an EMAIL regex pattern and replacement value
repl_opt = grr.ReplacementOptions(color)
emailRegex = "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"

redaction = grr.RegexRedaction(emailRegex, repl_opt)

# Open the presentation to clean
with gr.Redactor("source.pptx") as redactor:

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

    # Save your final redacted 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

Meet GroupDocs.Redaction for Python via .NET

GroupDocs.Redaction for Python via .NET gives Python developers the tools to clean POWERPOINT files inside and out. Remove content, images, notes, 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.

Redact Content in POWERPOINT Using Python

With Python, you can clean up POWERPOINT files by removing or hiding private text. Keep everything secure.

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