PPT
PPTX
ODP
POT
PPSX
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.
Load the PPTX file with the
Presentationclass.Use the
FindAndReplaceTextmethod to find and replace text.Save the updated file with
SaveFormat::Pptx.