# Extract Text and Images from PPT Files using .NET

> C# source code to extract text and images from PPT files using .NET.

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



## Parse PPT File Using C#

Use [Aspose.Slides for .NET](/slides/net/) to extract text from PPT presentations. Install the package from [NuGet](https://www.nuget.org/packages/aspose.slides.net) or run the following command in the Package Manager Console.

### Command

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

## How to Parse PPT Files in C#

Basic document parsing with the [Aspose.Slides for .NET](/slides/net/) API requires just a few lines of code.

Load the PPT file with `Presentation`.

Retrieve text frames with `SlideUtil.GetAllTextFrames`.

Iterate through text frames, paragraphs, and portions.

Read `Text`, `FontHeight`, and `LatinFont.FontName` properties as needed.

## System Requirements

A supported .NET runtime and an Aspose.Slides for .NET package reference are required. You can use Visual Studio or another compatible C# development environment.

- .NET Framework, .NET, Mono, or Xamarin-compatible environment
- A C# development environment such as Visual Studio
- Aspose.Slides for .NET installed from NuGet

### Parse PPT Files - C#

```cs
using var presentation = new Presentation("presentation.ppt");
var textFrames = SlideUtil.GetAllTextFrames(presentation, true);

foreach (var textFrame in textFrames)
{
    foreach (var paragraph in textFrame.Paragraphs)
    {
        foreach (var portion in paragraph.Portions)
        {
            Console.WriteLine(portion.Text);
            Console.WriteLine(portion.PortionFormat.FontHeight);

            var latinFont = portion.PortionFormat.LatinFont;
            if (latinFont is not null)
            {
                Console.WriteLine(latinFont.FontName);
            }
        }
    }
}
```

## About Aspose.Slides for .NET API

Aspose.Slides for .NET reads, writes, edits, and converts PowerPoint and OpenDocument presentations. It can create presentations, work with slides and their elements, and save to formats such as PDF, XPS, HTML, TIFF, and ODP without requiring Microsoft PowerPoint or OpenOffice.

A PPT file is a Microsoft PowerPoint 97-2003 presentation in the binary file format. It contains slides with text, bulleted lists, images, multimedia, and embedded OLE objects. Newer versions of PowerPoint use the Office Open XML-based PPTX format. Applications such as OpenOffice Impress and Apple Keynote can also create PPT files.

## Other Supported Parsing Formats

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