Convert PPSM Files to ODP in Python

Transform a macro-enabled PowerPoint slide show into an editable OpenDocument presentation.

Convert PPSM to ODP in Python

Aspose.Slides for Python via Java can convert a macro-enabled PowerPoint slide show (.ppsm) to an OpenDocument Presentation (.odp) without Microsoft PowerPoint or LibreOffice. The resulting ODP file remains editable in applications that support the OpenDocument format. Because ODP does not support VBA projects, macros are not retained.

Load the source file with Presentation, then call save with SaveFormat.Odp. Aspose.Slides converts supported slide content, layout, and formatting to the destination format.

How to Convert PPSM to ODP in Python

Create a Presentation from the source PPSM file and save it with SaveFormat.Odp.

Python code for converting PPSM to ODP

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

Steps to Convert PPSM to ODP in Python

The conversion loads the macro-enabled PowerPoint slide show and writes its slides to an OpenDocument presentation.

  1. Install Aspose.Slides for Python via Java .

  2. Configure JPype and make the Aspose.Slides package available to your Python project.

  3. Create a Presentation from the source .ppsm file.

  4. Call save with SaveFormat.Odp and an .odp output path.