# Redact PPTX Presentations using C++

> Redact PPTX presentations in C++. Use Aspose.Slides for C++ to find and replace sensitive text in presentation files.

Source: https://products.aspose.com/slides/cpp/redaction/pptx/
Updated: 2026-07-09



## Redact PPTX Presentation via C++

Aspose.Slides for C++ lets you redact PPTX presentations by replacing sensitive text in slides. Use `SlideUtil::FindAndReplaceText` with a `Presentation` object to search the presentation and replace matching text before saving the updated file.

### Redact PPTX Presentation using C++

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.pptx");

SlideUtil::FindAndReplaceText(presentation, true, u"Confidential", u"[redacted]", nullptr);
presentation->Save(u"redacted-presentation.pptx", SaveFormat::Pptx);
presentation->Dispose();
```

## How to Redact PPTX via C++

These are the steps to redact PPTX files.

Load the PPTX file with the `Presentation` class.

Use the [`FindAndReplaceText`](https://reference.aspose.com/slides/cpp/aspose.slides.util/slideutil/findandreplacetext/) method to find and replace sensitive text.

Save the redacted file with `SaveFormat::Pptx`.

## Other Supported Redact Formats
