# تحويل عروض PowerPoint إلى مستندات Word في C++

> تحويل شرائح PowerPoint PPT و PPTX إلى مستندات Word قابلة للتحرير في C++ باستخدام Aspose.Slides مع الحفاظ على التخطيط الدقيق والصور والتنسيق.

Source: https://docs.aspose.com/slides/ar/cpp/convert-powerpoint-to-word/
Updated: 2025-12-10


إذا كنت تخطط لاستخدام المحتوى النصي أو المعلومات من عرض تقديمي (PPT أو PPTX) بطرق جديدة، فقد تستفيد من تحويل العرض إلى Word (DOC أو DOCX). 

* عند المقارنة ببرنامج Microsoft PowerPoint، فإن تطبيق Microsoft Word مزود بأدوات أو وظائف أكثر للمحتوى. 
* بالإضافة إلى وظائف التحرير في Word، يمكنك أيضاً الاستفادة من ميزات التعاون المحسّنة، والطباعة، والمشاركة. 

{{% alert color="primary" %}} 

قد ترغب في تجربة [**محول العروض التقديمية إلى Word عبر الإنترنت**](https://products.aspose.app/slides/conversion/ppt-to-word) لمعرفة ما يمكنك الاستفادة منه عند العمل مع المحتوى النصي من الشرائح. 

{{% /alert %}} 

## **Aspose.Slides و Aspose.Words**

لتحويل ملف PowerPoint (PPTX أو PPT) إلى Word (DOCX أو DOCX)، تحتاج إلى كل من [Aspose.Slides for C++](https://products.aspose.com/slides/cpp/) و [Aspose.Words for C++](https://products.aspose.com/words/cpp/).

كـ API مستقلة، يوفر [Aspose.Slides](https://products.aspose.app/slides) لـ C++ وظائف تتيح لك استخراج النصوص من العروض التقديمية. 

[Aspose.Words](https://docs.aspose.com/words/cpp/) هو API متقدم لمعالجة المستندات يتيح للتطبيقات إنشاء، تعديل، تحويل، عرض، طباعة الملفات، وأداء مهام أخرى مع المستندات دون استخدام Microsoft Word.

## **تحويل عرض PowerPoint إلى مستند Word**

استخدم مقتطف الشيفرة التالي لتحويل PowerPoint إلى Word:
```cpp
auto presentation = MakeObject<Presentation>();
auto doc = MakeObject<Aspose::Words::Document>();
auto builder = MakeObject<Aspose::Words::DocumentBuilder>(doc);

for (const auto& slide : presentation->get_Slides())
{
    // ينشئ ويُدرج صورة الشريحة
    auto image = slide->GetImage(1.0f, 1.0f);
    builder->InsertImage(image);

    // يُدرج نصوص الشريحة
    for (const auto& shape : slide->get_Shapes())
    {
        if (ObjectExt::Is<AutoShape>(shape))
        {
            auto autoShape = System::AsCast<AutoShape>(shape);
            builder->Writeln(autoShape->get_TextFrame()->get_Text());
        }
    }

    builder->InsertBreak(Aspose::Words::BreakType::PageBreak);
}
```


## **الأسئلة الشائعة**

**ما المكونات التي يجب تثبيتها لتحويل عروض PowerPoint و OpenDocument إلى مستندات Word؟**

كل ما عليك هو إضافة الحزم المناسبة لـ [Aspose.Slides for C++](https://releases.aspose.com/slides/cpp/) و [Aspose.Words for C++](https://releases.aspose.com/words/cpp/) إلى مشروعك. كلا المكتبتين تعملان كـ APIs مستقلة، ولا يوجد أي شرط لتثبيت Microsoft Office.

**هل يتم دعم جميع تنسيقات عروض PowerPoint و OpenDocument؟**

يَدعم Aspose.Slides [جميع تنسيقات العروض التقديمية](/slides/ar/cpp/supported-file-formats/)، بما في ذلك PPT و PPTX و ODP وغيرها من أنواع الملفات الشائعة. يضمن ذلك أن تتمكن من العمل مع العروض التي تم إنشاؤها بإصدارات مختلفة من Microsoft PowerPoint.
