Convert ODP Presentations to POTX in Python

Save an ODP presentation in the Open XML POTX format with Aspose.Slides for Python via Java.

Convert ODP to POTX in Python

Aspose.Slides for Python via Java can load an ODP presentation and save it in the macro-free POTX presentation format based on Office Open XML. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

Convert ODP to POTX using Python

Create a Presentation from the ODP file and call save with SaveFormat.Potx to create the POTX file.

Python code for converting ODP to POTX

presentation = Presentation("presentation.odp")
try:
    presentation.save("presentation.potx", SaveFormat.Potx)
finally:
    presentation.dispose()

How to convert ODP to POTX in Python

Follow these steps to save an ODP presentation in the macro-free POTX 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.Potx to write the POTX file.