Search Text in ODP Presentations with Python
Build Python applications that find text in OpenDocument presentations with Aspose.Slides.
Search Text in an ODP Presentation with Python
With
Aspose.Slides for Python via .NET
, you can use
SlideUtil.get_text_boxes_contains_text
to find text frames on each slide that contain a specified string.
Search Text in an ODP Presentation - Python
with slides.Presentation("presentation.odp") as presentation:
for slide in presentation.slides:
matching_text_frames = slides.util.SlideUtil.get_text_boxes_contains_text(slide, "PowerPoint", False)
for text_frame in matching_text_frames:
print(text_frame.text)How to Search Text in ODP via Python
Follow these steps to search for text in an ODP presentation.
- Open the ODP file with
Presentation. - Iterate through the slides and call
SlideUtil.get_text_boxes_contains_textfor each one. - Read the
textproperty of each matching text frame.
Built with Aspose.Slides
Search Text in ODP Files Online
The free Aspose.Slides Search app is built with Aspose.Slides for Python via .NET, 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 text before you write code.
- Search your ODP file for plain text or regular expressions.
- Download the matches as a text file.
Other Supported Search Formats
Use Python to search for text in other supported presentation formats.