PPT PPTX ODP POT PPSX
Aspose.Slides for Python via .NET
PPTX

Search Text in PPTX Presentations with Python

Build Python applications that find text in PowerPoint presentations with Aspose.Slides.

Search Text in a PPTX 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 a PPTX Presentation - Python

with slides.Presentation("presentation.pptx") 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 PPTX via Python

Follow these steps to search for text in a PPTX presentation.

  1. Open the PPTX file with Presentation.

  2. Iterate through the slides and call SlideUtil.get_text_boxes_contains_text for each one.

  3. Read the text property of each matching text frame.

Online PPTX Search

Other Supported Search Formats

Use Python to search for text in other supported presentation formats.