Convert PPT to FODP in Python

Save a legacy PowerPoint presentation as a flat OpenDocument presentation with Aspose.Slides for Python via Java.

Convert PPT to FODP in Python

Aspose.Slides for Python via Java can load a legacy PowerPoint presentation (.ppt) and save it as a flat OpenDocument presentation (.fodp). Unlike an ODP package, an FODP file stores the presentation in a single XML document. Microsoft PowerPoint is not required.

Convert PPT to FODP using Python

Create a Presentation from the source PPT file, then call save with SaveFormat.Fodp.

Python code for converting PPT to FODP

presentation = Presentation("presentation.ppt")
try:
    presentation.save("presentation.fodp", SaveFormat.Fodp)
finally:
    presentation.dispose()

How to convert PPT to FODP in Python

Follow these steps to save a PowerPoint PPT presentation as a single-file FODP document.

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

  4. Call save with SaveFormat.Fodp and an .fodp output path.