Convert PDF to PPT in Python

Import PDF pages and save them as a PowerPoint 97-2003 presentation with a cross-platform Python library

Convert PDF to PPT in Python

Aspose.Slides for Python via .NET lets you convert PDF files to PPT presentations programmatically. The API imports each PDF page as a slide with SlideCollection.add_from_pdf, then writes the presentation in the PowerPoint 97-2003 format.

The conversion requires no Microsoft PowerPoint, Adobe Acrobat, or other presentation software. You can also try the PDF-to-PPT workflow in the online conversion app .

Convert PDF to PPT using Python

Create a Presentation, remove its default blank slide, import the PDF pages with SlideCollection.add_from_pdf, and save the result with SaveFormat.PPT.

Python code for converting PDF into PPT

with slides.Presentation() as presentation:
    presentation.slides.remove_at(0)
    presentation.slides.add_from_pdf("document.pdf")
    presentation.save("presentation.ppt", slides.export.SaveFormat.PPT)

How to Convert PDF to PPT Using Aspose.Slides for Python

These are the steps to convert PDF to PPT in Python.

  1. Install Aspose.Slides for Python via .NET .

  2. Create a Presentation and remove its default blank slide.

  3. Import the source PDF by using SlideCollection.add_from_pdf.

  4. Save the presentation by using Presentation.save with SaveFormat.PPT.

Convert PDF to Other Supported Formats

You can also convert PDF and save it in other file formats. See the supported formats below: