# Redact ODP Presentations using C++

> Redact ODP 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/odp/
Updated: 2026-07-09



## Redact ODP Presentation via C++

Aspose.Slides for C++ lets you redact ODP 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 ODP Presentation using C++

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

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

## How to Redact ODP via C++

These are the steps to redact ODP files.

Load the ODP 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::Odp`.

## Other Supported Redact Formats
