# Convert PowerPoint Presentations to Word Documents in C++

> Convert PowerPoint PPT and PPTX slides to editable Word documents in C++ using Aspose.Slides with precise layout, images and formatting preserved.

Source: https://docs.aspose.com/slides/cpp/convert-powerpoint-to-word/
Updated: 2026-08-13


## **Introduction**

If you plan to use textual content or information from a presentation (PPT or PPTX) in new ways, you may benefit from converting the presentation to Word (DOC or DOCX). 

* When compared to Microsoft PowerPoint, the Microsoft Word app is more equipped with tools or functionalities for content. 
* Besides the editing functions in Word, you may also benefit from enhanced collaboration, printing, and sharing features. 

{{% alert color="info" %}} 

You may want to try out our [**Presentation to Word Online Converter**](https://products.aspose.app/slides/conversion/ppt-to-word) to see what you could gain from working with textual content from slides. 

{{% /alert %}} 

## **Aspose.Slides and Aspose.Words**

To convert a PowerPoint file (PPTX or PPT) to Word (DOCX or DOCX), you need both [Aspose.Slides for C++](https://products.aspose.com/slides/cpp/) and [Aspose.Words for C++](https://products.aspose.com/words/cpp/).

As a standalone API, [Aspose.Slides](https://products.aspose.app/slides) for C++ provides functions that allow you to extract texts from presentations. 

[Aspose.Words](https://docs.aspose.com/words/cpp/) is an advanced document processing API that allows applications to generate, modify, convert, render, print files, and perform other tasks with documents without utilizing Microsoft Word.

## **Convert a PowerPoint Presentation to a Word Document**

Use this code snippet to convert the PowerPoint to Word:

```cpp
#include <Aspose.Words.Cpp/BreakType.h>
#include <Aspose.Words.Cpp/Document.h>
#include <Aspose.Words.Cpp/DocumentBuilder.h>
#include <DOM/AutoShape.h>
#include <DOM/IShape.h>
#include <DOM/IShapeCollection.h>
#include <DOM/ISlide.h>
#include <DOM/ISlideCollection.h>
#include <DOM/ITextFrame.h>
#include <DOM/Presentation.h>
#include <IImage.h>
#include <ImageFormat.h>
#include <system/io/memory_stream.h>
#include <system/object_ext.h>
using namespace Aspose::Slides;
using namespace System;

auto presentation = MakeObject<Presentation>(u"sample.pptx");

auto doc = MakeObject<Aspose::Words::Document>();
auto builder = MakeObject<Aspose::Words::DocumentBuilder>(doc);

for (const auto& slide : presentation->get_Slides())
{
    // generates a slide image as a byte array stream
    auto image = slide->GetImage(1.0f, 1.0f);
    auto imageStream = MakeObject<System::IO::MemoryStream>();
    image->Save(imageStream, Aspose::Slides::ImageFormat::Png);
    image->Dispose();

    builder->InsertImage(imageStream->ToArray());

    // inserts slide's texts
    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);
}

doc->Save(u"output.docx");
presentation->Dispose();
```

## **FAQ**

### What components need to be installed to convert PowerPoint and OpenDocument presentations to Word documents?

You only need to add the respective packages for [Aspose.Slides for C++](https://releases.aspose.com/slides/cpp/) and [Aspose.Words for C++](https://releases.aspose.com/words/cpp/) to your project. Both libraries operate as standalone APIs, and there is no requirement for Microsoft Office to be installed.

### Are all PowerPoint and OpenDocument presentation formats supported?

Aspose.Slides [supports all presentation formats](/slides/cpp/supported-file-formats/), including PPT, PPTX, ODP, and other common file types. This ensures that you can work with presentations created in various versions of Microsoft PowerPoint.

