# Egyesítse a PPTX fájlokat a C++ segítségével

> C++ példakód PPTX dokumentumok kombinálásához C++ Runtime Environment for Windows 32 bit, Windows 64 bit és Linux 64 bit.

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



## PPTX fájl egyesítése C++ használatával

 A PPTX fájl egyesítéséhez használjuk
 [Aspose.Slides for C++](https://products.aspose.com/slides/hu/cpp/)
 API, amely funkciókban gazdag, hatékony és könnyen használható dokumentum-egyesítési 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

```

## A PPTX fájlok egyesítésének lépései C++ nyelven

Az [Aspose.Slides for C++](https://products.aspose.com/slides/hu/cpp/) API-kkal való egyesítése és összefűzése néhány sornyi kóddal elvégezhető.

Töltsd be mindkét PPTX fájlt.

Használja a get\_Slides() metódust az egyes diák áthaladásához.

Az AddClone funkcióval egyesítheti a kívánt fájlt.

Használja a Save() metódust a megadott elérési úton történő mentéshez

## 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.

### PPTX fájlok egyesítése - C++

```cs
// The path to the documents directory.
const String sourceFilePath1 = u"SourceFile2.pptx";
const String sourceFilePath2 = u"SourceFile3.pptx";
const String outputFilePath = u"mergedOutput.pptx";

// Instantiate Presentation class
SharedPtr<Presentation> presentation1 = MakeObject<Presentation>(sourceFilePath1);
SharedPtr<Presentation> presentation2 = MakeObject<Presentation>(sourceFilePath2);

for (SharedPtr<ISlide> slide : presentation2->get_Slides()){
	// Merge from source to destination
	presentation1->get_Slides()->AddClone(slide);
}

// Save the presentation
presentation1->Save(outputFilePath, SaveFormat::Pptx);

```

## 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 PPTX extension are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. 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.

## Egyéb támogatott egyesítő formátumok

- [ODP](https://products.aspose.com/slides/hu/cpp/merger/odp/) — OpenDocument prezentációs formátum
- [OTP](https://products.aspose.com/slides/hu/cpp/merger/otp/) — OpenDocument szabványos formátum
- [POT](https://products.aspose.com/slides/hu/cpp/merger/pot/) — Microsoft PowerPoint sablonfájlok
- [POTM](https://products.aspose.com/slides/hu/cpp/merger/potm/) — Microsoft PowerPoint sablonfájl
- [POTX](https://products.aspose.com/slides/hu/cpp/merger/potx/) — Microsoft PowerPoint sablon bemutató
- [PPS](https://products.aspose.com/slides/hu/cpp/merger/pps/) — PowerPoint diavetítés
- [PPSM](https://products.aspose.com/slides/hu/cpp/merger/ppsm/) — Makró-képes diavetítés
- [PPSX](https://products.aspose.com/slides/hu/cpp/merger/ppsx/) — PowerPoint diavetítés
- [PPT](https://products.aspose.com/slides/hu/cpp/merger/ppt/) — Microsoft PowerPoint 97-2003
- [PPTM](https://products.aspose.com/slides/hu/cpp/merger/pptm/) — Makró-kompatibilis prezentációs fájl
