# Search Text in ODP Presentations with Python

> Search for text in ODP presentations with Python and Aspose.Slides.

Source: https://products.aspose.com/slides/python-net/search/odp/
Updated: 2026-07-30



## Search Text in an ODP Presentation with Python

With [Aspose.Slides for Python via .NET](/slides/python-net/), you can use [`SlideUtil.get_text_boxes_contains_text`](https://reference.aspose.com/slides/python-net/aspose.slides.util/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

```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_text`](https://reference.aspose.com/slides/python-net/aspose.slides.util/slideutil/get_text_boxes_contains_text/) for each one.

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

## Other Supported Search Formats
