Convert PPTX to PPT in Python

Overview

Aspose.Slides for Python lets you convert modern PPTX presentations to the legacy PPT format entirely in code. Open a PPTX and export it as PPT while maintaining the presentation’s content and layout, making the result compatible with older versions of PowerPoint. The same workflow can produce other outputs—such as PDF, XPS, ODP, HTML, or images—so it fits smoothly into scripts, CI pipelines, and batch processing.

Convert PPTX to PPT

To convert a PPTX to PPT, simply pass the file name and save format to the save method of the Presentation class. The Python example below converts a presentation from PPTX to PPT using the default options.

import aspose.slides as slides

# Instantiate the Presentation class that represents a PPTX file.
presentation = slides.Presentation("presentation.pptx")

# Save the presentation as a PPT file.
presentation.save("presentation.ppt", slides.export.SaveFormat.PPT)

See also: