PPT
PPTX
ODP
POT
ppsx
PPT
Search Text PPT using Python
Build your own Python apps to search and replace text in presentation files using server-side APIs. Learn how to find all the entrances of a certain word or phrase in presentation documents. Search text by exact data matching and regular expression matching.
Search and Replace Text PPT Presentation via Python
A basic document search and replace text in contents, comments, slide notes or metadata with Aspose.Slides for Python via .NET APIs can be done with just few lines of code. Use regular expression matching, match case to search text in presentation. Search text in titles, content, footer or header.
Search text PPT Presentation using Python
import aspose.slides as slides
with slides.Presentation("welcome-to-powerpoint.ppt") as pres:
slides.util.SlideUtil.find_and_replace_text(pres, True, "PowerPoint", "Aspose.Slides", None)
pres.save("replaced.ppt", slides.export.SaveFormat.PPT)
How to Search Text in PPT via Python
These are the steps to search text PPT files.
Load PPT with an instance of Presentation.
Use FindAndReplaceText method to find and replace text.
Save result in PPT format