Convert PDF to PPTX in Python
Import PDF pages and save them as a PowerPoint Open XML presentation with a cross-platform Python library
Convert PDF to PPTX in Python
Aspose.Slides for Python via .NET
lets you convert PDF files to PPTX presentations programmatically. The API imports each PDF page as a slide with SlideCollection.add_from_pdf, then writes the presentation in PowerPoint Open XML format.
The conversion requires no Microsoft PowerPoint, Adobe Acrobat, or other presentation software. See the presentation import guide for more details.
Convert PDF to PPTX 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.PPTX.
Python code for converting PDF into PPTX
with slides.Presentation() as presentation:
presentation.slides.remove_at(0)
presentation.slides.add_from_pdf("document.pdf")
presentation.save("presentation.pptx", slides.export.SaveFormat.PPTX)
How to Convert PDF to PPTX Using Aspose.Slides for Python
These are the steps to convert PDF to PPTX 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.PPTX.
Convert PDF to Other Supported Formats
You can also convert PDF and save it in other file formats. See the supported formats below: