Use GroupDocs.Redaction to quickly remove metadata from your Python via .NET app.
- Create a Redactor and open the Pptx document.
- Choose which metadata you want to erase.
- Apply the redaction to remove hidden data.
- Save the updated file.
Use GroupDocs.Redaction to quickly remove metadata from your Python via .NET app.
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()
GroupDocs.Redaction for Python via .NET supports redaction across many formats. A fast way to remove personal content from documents.
Quickly delete words or phrases that contain personal or sensitive data.
Cover image sections that shouldn’t be shared.
Get rid of author names, titles, and other hidden tags.
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)
Download GroupDocs.Redaction for free or get a trial license for full access!
Explore documentation, code samples, and community support to enhance your experience.
Remove background data from PPTX with Python. Great for privacy and compliance.