Redact ODP using C++

Use Aspose.Slides for C++ to find and replace sensitive text in presentation files without Microsoft PowerPoint.

Redact an 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 an ODP Presentation using C++

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++

Follow these steps to redact an ODP presentation.

  1. Load the ODP file with the Presentation class.
  2. Use the FindAndReplaceText method to find and replace sensitive text.
  3. Save the redacted file with SaveFormat::Odp.

Built with Aspose.Slides

Redact ODP Files Online

The free Aspose.Slides Redaction app is built with Aspose.Slides for C++, 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

Using C++, you can also redact the following formats.