PPT PPTX ODP POT PPSX
Aspose.Slides  for C++
PPTX

Search Text in PPTX using C++

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

Search and Replace Text in PPTX Presentation via C++

Aspose.Slides for C++ lets you search text in PPTX presentations and replace matching content. Use SlideUtil::FindAndReplaceText with a Presentation object to search slide text and save the updated presentation.

Search Text in PPTX Presentation using C++

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

SlideUtil::FindAndReplaceText(presentation, true, u"Quarterly Report", u"Annual Report", nullptr);
presentation->Save(u"updated-presentation.pptx", SaveFormat::Pptx);
presentation->Dispose();

How to Search Text in PPTX via C++

These are the steps to search text in PPTX files.

  1. Load the PPTX file with the Presentation class.

  2. Use the FindAndReplaceText method to find and replace text.

  3. Save the updated file with SaveFormat::Pptx.

Online PPTX Search Live Demos