# Redact Text in PPT Presentations with Python

> Find and replace sensitive text in PPT presentations with Python.

Source: https://products.aspose.com/slides/python-net/redaction/ppt/
Updated: 2026-07-30



## Redact Text in a PPT Presentation with Python

With [Aspose.Slides for Python via .NET](/slides/python-net/), you can replace sensitive text throughout a PPT presentation. Use `Presentation.replace_text` with `TextSearchOptions` to control the search, then save the modified presentation.

### Redact Text in a PPT Presentation - Python

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

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

## How to Redact Text in a PPT Presentation with Python

Follow these steps to replace sensitive text in a PPT presentation.

Open the PPT file with `Presentation`.

Use [`Presentation.replace_text`](https://reference.aspose.com/slides/python-net/aspose.slides/presentation/replace_text/) with `TextSearchOptions` to replace the required text.

Save the modified presentation with `SaveFormat.PPT`.

## Other Supported Redaction Formats
