Main Tools in GroupDocs.Redaction for Python via .NET

Delete Metadata in PPTX with Python

Erase private metadata stored in PPTX files using Python. A smart way to protect your information.

Clean Up Metadata in Pptx Files

Use GroupDocs.Redaction to quickly remove metadata from your Python via .NET app.

  1. Create a Redactor and open the Pptx document.
  2. Choose which metadata you want to erase.
  3. Apply the redaction to remove hidden data.
  4. Save the updated file.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr

# Erase metadata in PPTX

# Choose which fields to redact
redaction = grr.EraseMetadataRedaction(grr.MetadataFilters.ALL)

# Open your file with Redactor
with gr.Redactor("input.pptx") as redactor:

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

Other Ways to Hide Sensitive Info

GroupDocs.Redaction for Python via .NET supports redaction across many formats. A fast way to remove personal content from documents.

File Redaction Tools

Search and Remove Text

Quickly delete words or phrases that contain personal or sensitive data.

Add Image Overlays

Cover image sections that shouldn’t be shared.

Remove Hidden Metadata

Get rid of author names, titles, and other hidden tags.

Example: Delete Metadata Fields

Follow this example to remove common metadata fields from a PPTX file before sharing.

Python

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

# Mark Author field for redaction
redaction_author = grr.MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs Company")
redaction_author.filter = grr.MetadataFilters.AUTHOR

# Mark Title field for redaction
redaction_title = grr.MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
redaction_title.filter = grr.MetadataFilters.TITLE

# Load the file
with gr.Redactor("source.pptx") as redactor:

    # Apply redaction
    redactions = [
      redaction_author,
      redaction_title
    ]
    result = redactor.apply(redactions)

    # Export the cleaned 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

More About GroupDocs.Redaction for Python via .NET

GroupDocs.Redaction is built for Python developers who want to keep documents clean. Use it to delete text, cover images, or remove metadata from PPTX files.
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.

Use Python to Clean Metadata from PPTX

Remove background data from PPTX with Python. Great for privacy and compliance.

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