# Convert ODP to PPTX in C++

> Convert ODP to PPTX with Aspose.Slides for C++. Clean code examples, batch tips, and high-quality results—no PowerPoint needed.

Source: https://docs.aspose.com/slides/cpp/convert-odp-to-pptx/
Updated: 2026-08-05


## **Overview**

This article explains how to convert an ODP presentation to PPTX format using Aspose.Slides.

## **ODP to PPTX Conversion**

Aspose.Slides for .NET offers Presentation class that represents a presentation file. [**Presentation**](https://reference.aspose.com/slides/cpp/class/aspose.slides.presentation) class can now also access ODP through Presentation constructor when the object is instantiated. The following example shows how to convert a ODP Presentation into PPTX Presentation.

``` cpp
#include <DOM/Presentation.h>
#include <Export/SaveFormat.h>
#include <system/string.h>
using namespace Aspose::Slides;
using namespace Aspose::Slides::Export;
using namespace System;

// The path to the documents directory.
String dataDir = u"../documents/";

// Open the ODP file
auto pres = System::MakeObject<Presentation>(dataDir + u"AccessOpenDoc.odp");

// Saving the ODP presentation to PPTX format
pres->Save(dataDir + u"AccessOpenDoc_out.pptx", SaveFormat::Pptx);
```

## **Live Example**

You can visit [**Aspose.Slides Conversion**](https://products.aspose.app/slides/conversion/) web app, which is built with **Aspose.Slides API.** The app demonstrates how ODP to PPTX conversion can be implemented with Aspose.Slides API.

## **FAQ**

### Do I need to install Microsoft PowerPoint or LibreOffice to convert ODP to PPTX?

No. Aspose.Slides works standalone and does not require third-party applications to read or write ODP/PPTX.

### Are master slides, layouts, and themes preserved during conversion?

Yes. The library uses a full presentation object model and retains structure, including master slides and layouts, so the design remains correct after conversion.

### Can I convert password-protected ODP files?

Yes. Aspose.Slides supports detecting protection, opening and working with [protected presentations](/slides/cpp/password-protected-presentation/) (including ODP) when you provide the password, as well as configuring encryption and access to document properties.

### Is Aspose.Slides suitable for cloud or REST-based conversion services?

Yes. You can use the local library in your own backend or [Aspose.Slides Cloud](https://products.aspose.cloud/slides/family/) (REST API); both options support ODP → PPTX conversion.

