Convert PPTX Presentations to ODP in Python

Save a PowerPoint presentation in the OpenDocument Presentation format with Aspose.Slides for Python via Java.

Convert PPTX to ODP in Python

Aspose.Slides for Python via Java can load a PPTX presentation and save it as an ODP file. The conversion preserves the presentation structure and visual content while producing an OpenDocument presentation that can be opened by compatible applications. Microsoft PowerPoint, LibreOffice, and OpenOffice are not required.

Convert PPTX to ODP using Python

Create a Presentation from the PPTX file and call save with SaveFormat.Odp to generate the ODP presentation.

Python code for converting PPTX to ODP

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

How to convert PPTX to ODP in Python

Follow these steps to convert a PPTX presentation to an ODP file.

  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 PPTX file with Presentation.

  4. Call save with SaveFormat.Odp to write the ODP presentation.