Redact PPTX using C++

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

Redact a 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 a PPTX Presentation using C++

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

Follow these steps to redact a PPTX presentation.

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

Built with Aspose.Slides

Redact PPTX 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 PPTX 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 PPTX file, including regular expressions.
  • Download the redacted file.

Other Supported Redaction Formats

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