Convert PPT to PPTX in Python

Overview

This article explains how to convert PowerPoint Presentation in PPT format into PPTX format using Python and with online PPT to PPTX conversion app. The following topic is covered.

  • Convert PPT to PPTX in Python

Python Convert PPT to PPTX

For Python sample code to convert PPT to PPTX, please see the section below i.e. Convert PPT to PPTX. It just loads the PPT file and saves in PPTX format. By specifiying different save formats, you can also save PPT file into many other formats like PDF, XPS, ODP, HTML etc. as disscussed in these articles.

About PPT to PPTX Conversion

Convert old PPT format to PPTX with Aspose.Slides API. If you need to convert thousands of PPT presentations to PPTX format, the best solution is to do it programmatically. With Aspose.Slides API its possible to do it just in few lines of code. The API supports full compatibility to convert PPT presentation to PPTX and its possible to:

  • Convert complicated structures of masters, layouts and slides.
  • Convert presentation with charts.
  • Convert presentation with group shapes, auto-shapes (like rectangles and ellipses), shapes with custom geometry.
  • Convert presentation, having textures and pictures fill styles for auto-shapes.
  • Convert presentation with placeholders, text frames and text holders.

Convert PPT to PPTX

To convert a PPT to PPTX simply pass the file name and save format to the Save method of Presentation class. The Python code sample below converts a Presentation from PPT to PPTX using default options.

import aspose.slides as slides

# Instantiate a Presentation object that represents a PPTX file
pres = slides.Presentation("PPTtoPPTX.ppt")

# Saving the PPTX presentation to PPTX format
pres.save("PPTtoPPTX_out.pptx", slides.export.SaveFormat.PPTX)

Read more about PPT vs PPTX presentation formats and how Aspose.Slides supports PPT to PPTX conversion.