# Extract Text from ODP Files with Python

> Extract text and text formatting details from ODP presentations with Python.

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



## Extract Text from an ODP Presentation with Python

[**Aspose.Slides for Python via .NET**](/slides/python-net/) provides the [`get_all_text_frames`](https://reference.aspose.com/slides/python-net/aspose.slides.util/slideutil/get_all_text_frames/) static method on `SlideUtil`. It returns the `TextFrame` objects from an entire presentation and can include text from master slides. The following example extracts text and related font details from an ODP presentation.

### Extract Text from an ODP Presentation - Python

```python
include_master_slides = True

with slides.Presentation("presentation.odp") as presentation:
    text_frames = slides.util.SlideUtil.get_all_text_frames(presentation, include_master_slides)

    for text_frame in text_frames:
        for paragraph in text_frame.paragraphs:
            for portion in paragraph.portions:
                print(portion.text)

                font_height = portion.portion_format.font_height
                print(font_height)

                latin_font = portion.portion_format.latin_font
                if latin_font is not None:
                    print(latin_font.font_name)
```

## How to Extract Text from ODP with Python

Follow these steps to extract text from an ODP file.

Open the ODP file with `Presentation`.

Call `SlideUtil.get_all_text_frames` and specify whether to include master slides.

Iterate through the returned `TextFrame` objects.

Iterate through each text frame's `paragraphs` collection.

Iterate through each paragraph's `portions` collection.

Read the current portion's `text` and formatting properties.

## Other Supported Parsing Formats
