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.
Install Aspose.Slides for Python via .NET .
Create a
Presentationand remove its default blank slide.Import the source PDF by using
SlideCollection.add_from_pdf.Save the presentation by using
Presentation.savewithSaveFormat.PPT.
Convert PDF to Other Supported Formats
You can also convert PDF and save it in other file formats. See the supported formats below: