Convert POT Files to POTX in Python

Save a binary PowerPoint template as an Open XML template with Aspose.Slides for Python via Java.

Convert POT to POTX in Python

Aspose.Slides for Python via Java can load a binary PowerPoint 97–2003 template (POT) and save it as an Open XML PowerPoint template (POTX). POTX is a macro-free format, so use POTM instead when the output must support VBA macros. Microsoft PowerPoint is not required for the conversion.

Convert POT to POTX using Python

Create a Presentation from the POT file, then call save with SaveFormat.Potx.

Python code for converting POT to POTX

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

How to convert POT to POTX in Python

Follow these steps to convert a binary PowerPoint template to the 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 POT file with Presentation.

  4. Call save with SaveFormat.Potx to create the POTX file.