PPT
PPTX
ODP
POT
PPSX
PPTX
Redact Text in PPTX Presentations with Python
Build Python applications that find and replace sensitive text in presentations with Aspose.Slides.
Redact Text in a PPTX Presentation with Python
With
Aspose.Slides for Python via .NET
, you can replace sensitive text throughout a PPTX presentation. Use Presentation.replace_text with TextSearchOptions to control the search, then save the modified presentation.
Redact Text in a PPTX Presentation - Python
search_options = slides.TextSearchOptions()
search_options.whole_words_only = True
search_options.include_notes = True
with slides.Presentation("presentation.pptx") as presentation:
presentation.replace_text("Confidential", "[REDACTED]", search_options, None)
presentation.save("redacted-presentation.pptx", slides.export.SaveFormat.PPTX)
How to Redact Text in a PPTX Presentation with Python
Follow these steps to replace sensitive text in a PPTX presentation.
Open the PPTX file with
Presentation.Use
Presentation.replace_textwithTextSearchOptionsto replace the required text.Save the modified presentation with
SaveFormat.PPTX.