Convert ODP Presentations to PPTX in Python

Transform an ODP presentation into an editable PPTX file with Aspose.Slides for Python via Java.

Convert ODP to PPTX in Python

Aspose.Slides for Python via Java can load an ODP presentation and save it as a PPTX file while preserving its slides and content. PPTX is the macro-free presentation format based on Office Open XML. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

Convert ODP to PPTX using Python

Create a Presentation from the ODP file and call save with SaveFormat.Pptx to create the PPTX file.

Python code for converting ODP to PPTX

presentation = Presentation("presentation.odp")
try:
    presentation.save("presentation.pptx", SaveFormat.Pptx)
finally:
    presentation.dispose()

How to convert ODP to PPTX in Python

Follow these steps to convert an OpenDocument presentation to the PowerPoint PPTX format.

  1. Install Aspose.Slides for Python via Java .

  2. Configure the package and start the Java Virtual Machine in your application.

  3. Open the source ODP file with Presentation.

  4. Call save with SaveFormat.Pptx to write the PPTX file.