# Extraheer tekst en afbeeldingen uit PPT-document via C++

> C++ voorbeeldcode om tekst en afbeeldingen uit het PPT-bestand te extraheren in C++ Runtime Environment voor Windows 32 bit, Windows 64 bit en Linux 64 bit.

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



## Hoe een PPT-bestand te parseren met C++

 Om het PPT-bestand te ontleden, gebruiken we
 [Aspose.Slides voor C++](https://products.aspose.com/slides/nl/cpp/)
 API, een veelzijdige, krachtige en gebruiksvriendelijke documentparsing-API voor het C++-platform. Je kunt de nieuwste versie direct downloaden, open gewoon
 [NuGet](https://www.nuget.org/packages/aspose.slides)
 pakketbeheerder, zoek naar
 **Aspose.Slides.Cpp**
 en installeren. U kunt ook de volgende opdracht gebruiken vanuit de Package Manager Console.

### Opdracht

```cs

PM> Install-Package Aspose.Slides.Cpp

```

## Stappen om PPT-bestanden te ontleden in C++

Een basisdocument ontleden met [Aspose.Slides for C++](https://products.aspose.com/slides/nl/cpp/) API's kan worden gedaan met slechts enkele regels code.

Laad PPT-bestand.

Krijg een array van ITextFrame-objecten van de eerste dia.

Loop door de reeks TextFrames

Loop door alinea's in het huidige ITextFrame.

Doorloop gedeelten in het huidige Iparagraaf.

Geef de tekst weer.

## systeem vereisten

 Aspose.Slides voor C++ ondersteunt alle belangrijke platforms en besturingssystemen. Zorg ervoor dat u aan de volgende vereisten voldoet.

- Microsoft Windows of een compatibel besturingssysteem met C++ Runtime Environment voor Windows 32 bit, Windows 64 bit en Linux 64 bit.
- Aspose.Slides voor C++ DLL waarnaar in uw project wordt verwezen.

### PPT-bestanden ontleden - C++

```cs
// Sample file path
const String sourceFilePath = u"SourcePath\sourceFile.ppt";

// Load the PPT file
SharedPtr<Presentation> presentation = MakeObject<Presentation>(sourceFilePath);

// Get an Array of ITextFrame objects from the first slide
System::ArrayPtr<SharedPtr<ITextFrame>> textFramesSlideOne = SlideUtil::GetAllTextBoxes(presentation->get_Slides()->idx_get(0));

// Loop through the Array of TextFrames
for (int i = 0; i get_Length(); i++){
	// Loop through paragraphs in current ITextFrame
	for (SharedPtr<IParagraph> paragraph : textFramesSlideOne[i]->get_Paragraphs()){
		// Loop through portions in the current IParagraph
		for (SharedPtr<IPortion> portion : paragraph->get_Portions()){
			// Display text
			Console::WriteLine(portion->get_Text());
		}
	}
}

```

## Over Aspose.Slides voor C++ API

 Aspose.Slides API kan worden gebruikt om Microsoft PowerPoint-documenten te lezen, schrijven, manipuleren en converteren naar PDF, XPS, HTML, TIFF, ODP en verschillende andere formaten. Men kan vanaf het begin nieuwe bestanden maken en deze opslaan in de relevante ondersteunde formaten. Aspose.Slides is een zelfstandige API voor het maken, parseren of manipuleren van presentaties, dia's en elementen en is niet afhankelijk van software zoals Microsoft of OpenOffice.

A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. A PPT file can contain several different types of information such as text, bulleted points, images, multimedia and other embedded OLE objects. Microsoft came up with newer file format for PowerPoint, known as PPTX, from 2007 onwards that is based on Office OpenXML and is different from this binary file format. Several other application programs such as OpenOffice Impress and Apple Keynote can also create PPT files.

## Andere ondersteunde documenten parseren

- [ODP](https://products.aspose.com/slides/nl/cpp/parser/odp/) — OpenDocument-presentatie-indeling
- [PPTX](https://products.aspose.com/slides/nl/cpp/parser/pptx/) — Open XML-presentatie-indeling
