# دمج ملفات PPTX عبر C ++

> مثال على كود C ++ لدمج مستندات PPTX في بيئة تشغيل C ++ لنظام التشغيل Windows 32 بت و Windows 64 بت و Linux 64 بت.

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



## كيفية دمج ملف PPTX باستخدام C ++

 لدمج ملف PPTX ، سنستخدمه
 [Aspose.Slides for C ++](https://products.aspose.com/slides/ar/cpp/)
 API وهو عبارة عن واجهة برمجة تطبيقات لدمج المستندات غنية بالميزات وقوية وسهلة الاستخدام لمنصة C ++. يمكنك تنزيل أحدث إصدار مباشرة ، فقط افتح
 [NuGet](https://www.nuget.org/packages/aspose.slides)
 مدير الحزم ، ابحث عن
 ** Aspose.Slides.Cpp **
 وتثبيت. يمكنك أيضًا استخدام الأمر التالي من Package Manager Console.

### أمر

```cs

PM> Install-Package Aspose.Slides.Cpp

```

## خطوات دمج ملفات PPTX في C ++

يمكن دمج ودمج المستندات الأساسية مع واجهات برمجة التطبيقات [Aspose.Slides for C ++](https://products.aspose.com/slides/ar/cpp/) ببضعة سطور من التعليمات البرمجية.

قم بتحميل كلا من ملفات PPTX.

استخدم طريقة get \ _Slides () للتكرار خلال كل شريحة.

استخدم وظيفة AddClone للدمج مع الملف المطلوب.

استخدم طريقة Save () للحفظ في المسار المحدد

## متطلبات النظام

 Aspose.Slides for C ++ يدعم جميع المنصات وأنظمة التشغيل الرئيسية. يرجى التأكد من توفر المتطلبات التالية.

- Microsoft Windows أو نظام تشغيل متوافق مع C ++ Runtime Environment لأنظمة Windows 32 بت و Windows 64 بت و Linux 64 بت.
- Aspose.Slides لـ C ++ DLL المشار إليها في مشروعك.

### دمج ملفات PPTX - 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);

```

## حول Aspose.Slides for C ++ API

 يمكن استخدام Aspose.Slides API لقراءة وكتابة ومعالجة وتحويل مستندات Microsoft PowerPoint إلى PDF و XPS و HTML و TIFF و ODP وتنسيقات أخرى متنوعة. يمكن للمرء إنشاء ملفات جديدة من البداية وحفظ تلك في التنسيقات المدعومة ذات الصلة. Aspose.Slides هي واجهة برمجة تطبيقات مستقلة لإنشاء العروض التقديمية والشرائح والعناصر أو تحليلها أو معالجتها ، ولا تعتمد على أي برنامج مثل Microsoft أو OpenOffice.

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.

## تنسيقات الدمج المدعومة الأخرى

- [ODP](https://products.aspose.com/slides/ar/cpp/merger/odp/) — تنسيق العرض التقديمي OpenDocument
- [OTP](https://products.aspose.com/slides/ar/cpp/merger/otp/) — تنسيق OpenDocument القياسي
- [POT](https://products.aspose.com/slides/ar/cpp/merger/pot/) — ملفات قوالب Microsoft PowerPoint
- [POTM](https://products.aspose.com/slides/ar/cpp/merger/potm/) — ملف قالب Microsoft PowerPoint
- [POTX](https://products.aspose.com/slides/ar/cpp/merger/potx/) — عرض تقديمي لقالب Microsoft PowerPoint
- [PPS](https://products.aspose.com/slides/ar/cpp/merger/pps/) — عرض شرائح PowerPoint
- [PPSM](https://products.aspose.com/slides/ar/cpp/merger/ppsm/) — عرض شرائح ممكّن بماكرو
- [PPSX](https://products.aspose.com/slides/ar/cpp/merger/ppsx/) — عرض شرائح PowerPoint
- [PPT](https://products.aspose.com/slides/ar/cpp/merger/ppt/) — مايكروسوفت باور بوينت 97-2003
- [PPTM](https://products.aspose.com/slides/ar/cpp/merger/pptm/) — ملف العرض التقديمي الممكّن بماكرو
