Redact Text in ODP Presentations with Python

Build Python applications that find and replace sensitive text in presentations with Aspose.Slides.

Redact Text in an ODP Presentation with Python

With Aspose.Slides for Python via .NET , you can replace sensitive text throughout an ODP presentation. Use Presentation.replace_text with TextSearchOptions to control the search, then save the modified presentation.

Redact Text in an ODP Presentation - Python

search_options = slides.TextSearchOptions()
search_options.whole_words_only = True
search_options.include_notes = True

with slides.Presentation("presentation.odp") as presentation:
    presentation.replace_text("Confidential", "[REDACTED]", search_options, None)
    presentation.save("redacted-presentation.odp", slides.export.SaveFormat.ODP)

How to Redact Text in an ODP Presentation with Python

Follow these steps to replace sensitive text in an ODP presentation.

  1. Open the ODP file with Presentation.
  2. Use Presentation.replace_text with TextSearchOptions to replace the required text.
  3. Save the modified presentation with SaveFormat.ODP.

Built with Aspose.Slides

Redact ODP Files Online

The free Aspose.Slides Redaction app is built with Aspose.Slides for Python via .NET, the same API as the code above. Open it and see what the API can do with your own ODP files.

  • Runs in your browser, nothing to install.
  • See how Aspose.Slides finds and replaces text before you write code.
  • Find and replace text in your ODP file, including regular expressions.
  • Download the redacted file.

Other Supported Redaction Formats

Use Python to redact text in other supported presentation formats.