Convert PPTX to PPT in C++

Overview

This article explains how to convert PowerPoint Presentation in PPTX format into PPT format using C++. The following topic is covered.

  • Convert PPTX to PPT in C++

C++ Convert PPTX to PPT

For C++ sample code to convert PPTX to PPT, please see the section below i.e. Convert PPTX to PPT. It just loads the PPTX file and saves in PPT format. By specifiying different save formats, you can also save PPTX file into many other formats like PDF, XPS, ODP, HTML etc. as disscussed in these articles.

Convert PPTX to PPT

To convert a PPTX to PPT simply pass the file name and save format to the Save method of Presentation class. The C++ code sample below converts a Presentation from PPTX to PPT using default options.

// Load the PPTX.
SharedPtr<Presentation> prs = MakeObject<Presentation>(u"sourceFile.pptx");

// Save in PPT format.
prs->Save(u"convertedFile.ppt", Aspose::Slides::Export::SaveFormat::Ppt);