# Szöveg és képek kibontása az ODP-dokumentumból C++ segítségével

> C++ példakód szövegek és képek kinyerésére ODP-fájlból C++ Runtime Environment for Windows 32 bit, Windows 64 bit és Linux 64 bit.

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



## Az ODP-fájl elemzése C++ használatával

 Az ODP-fájl elemzéséhez használjuk
 [Aspose.Slides for C++](https://products.aspose.com/slides/hu/cpp/)
 API, amely egy funkciókban gazdag, hatékony és könnyen használható dokumentumelemző API C++ platformhoz. A legújabb verziót közvetlenül letöltheti, csak nyissa meg
 [NuGet](https://www.nuget.org/packages/aspose.slides)
 csomagkezelő, keressen
 **Aspose.Slides.Cpp**
 és telepítse. A következő parancsot is használhatja a Package Manager konzolból.

### Parancs

```cs

PM> Install-Package Aspose.Slides.Cpp

```

## Az ODP-fájlok elemzésének lépései C++-ban

Az alapvető dokumentumelemzés az [Aspose.Slides for C++](https://products.aspose.com/slides/hu/cpp/) API-kkal néhány sornyi kóddal elvégezhető.

ODP fájl betöltése.

Szerezzen be egy tömb ITextFrame objektumokat az első dián.

Lapozzon át a TextFrames tömbön

Lapozás a bekezdések között az aktuális ITextFrame-ben.

Végezzen hurkot az aktuális IPagráf részein.

Jelenítse meg a szöveget.

## rendszerkövetelmények

 Az Aspose.Slides for C++ támogatja az összes főbb platformon és operációs rendszeren. Kérjük, győződjön meg arról, hogy rendelkezik az alábbi előfeltételekkel.

- Microsoft Windows vagy kompatibilis operációs rendszer C++ futási környezettel Windows 32 bites, Windows 64 bites és Linux 64 bites rendszerhez.
- Aspose.Slides for C++ DLL, amelyre a projektben hivatkozik.

### ODP-fájlok elemzése - C++

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

// Load the ODP 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());
		}
	}
}

```

## Az Aspose.Slides for C++ API-ról

 Az Aspose.Slides API használható Microsoft PowerPoint dokumentumok olvasására, írására, manipulálására és konvertálására PDF, XPS, HTML, TIFF, ODP és számos más formátumba. Új fájlokat lehet létrehozni a semmiből, és elmenteni azokat a megfelelő támogatott formátumokba. Az Aspose.Slides egy önálló API prezentációk, diák és elemek létrehozására, elemzésére vagy manipulálására, és nem függ semmilyen szoftvertől, például a Microsofttól vagy az OpenOffice-tól.

Files with ODP extension represent presentation file format used by OpenOffice.org in the OASISOpen standard. A presentation file is a collection of slides where each slide can comprise of text, images, formatting, animations, and other media. These slides are presented to audience in the form of slideshows with custom presentation settings. ODP files can be opened by applications that conform to the OpenDocument format (such as OpenOffice or StarOffice).

## Egyéb támogatott elemzési dokumentumok

- [PPT](https://products.aspose.com/slides/hu/cpp/parser/ppt/) — Microsoft PowerPoint 97-2003
- [PPTX](https://products.aspose.com/slides/hu/cpp/parser/pptx/) — Nyissa meg az XML prezentációs formátumot
