# Extract Text from PPT Presentations using C++

> Extract text from PPT presentations in C++. Use Aspose.Slides for C++ to parse slides, text frames, paragraphs, and portions.

Source: https://products.aspose.com/slides/cpp/parser/ppt/
Updated: 2026-08-11



## Parse PPT File Using C++

Use Aspose.Slides for C++ to parse PPT presentation files and extract text from slides. The API exposes slide text through `SlideUtil::GetAllTextBoxes`, `ITextFrame`, `IParagraph`, and `IPortion`, so you can read text content without automating Microsoft PowerPoint. Install the [`Aspose.Slides.Cpp`](https://www.nuget.org/packages/Aspose.Slides.Cpp/) package from NuGet or use the Package Manager Console command below.

### Command

```powershell
PM> Install-Package Aspose.Slides.Cpp
```

## How to Parse PPT Files in C++

Extract text from PPT files with Aspose.Slides for C++.

Load the PPT file with the `Presentation` class.

Get the `ITextFrame` objects from the first slide with `SlideUtil::GetAllTextBoxes`.

Loop through the `ITextFrame` objects.

Loop through the `IParagraph` objects in each `ITextFrame`.

Loop through the `IPortion` objects in each `IParagraph`.

Read the text with `get_Text`.

## System Requirements

Aspose.Slides for C++ supports major desktop and server platforms. Make sure that your project has the following prerequisites.

-  Microsoft Windows, Linux, macOS, or another compatible OS with the supported C++ runtime.
-  Aspose.Slides for C++ library referenced in your project.

### Parse PPT Files - C++

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.ppt");
auto textFrames = SlideUtil::GetAllTextBoxes(presentation->get_Slide(0));

for (auto&& textFrame : textFrames)
{
    for (auto&& paragraph : textFrame->get_Paragraphs())
    {
        for (auto&& portion : paragraph->get_Portions())
        {
            Console::WriteLine(portion->get_Text());
        }
    }
}

presentation->Dispose();
```

## About Aspose.Slides for C++ API

Aspose.Slides for C++ is a standalone API for creating, reading, parsing, editing, and converting presentation files. It can work with Microsoft PowerPoint and OpenDocument formats such as `PPT`, `PPTX`, and `ODP` without Microsoft PowerPoint or OpenOffice.

A PPT file is a Microsoft PowerPoint 97-2003 presentation file. It stores slides, text, images, multimedia, and embedded objects in the binary PowerPoint file format used before the Open XML PPTX format.

## Other Supported Parsing Documents

- [ODP](/slides/cpp/parser/odp/) — OpenDocument Presentation Format
- [PPTX](/slides/cpp/parser/pptx/) — Open XML Presentation Format
