Convert PDF to PPSM in Python
Powerful PowerPoint Python library for converting PDF to PPSM
Convert PDF to PPSM in Python
Aspose.Slides for Python via .NET
lets you convert PDF files to PPSM slide shows programmatically. The API imports each PDF page as a slide with SlideCollection.add_from_pdf, then writes the presentation in the macro-enabled PowerPoint slide show format.
The conversion requires no Microsoft PowerPoint, Adobe Acrobat, or other presentation software. You can also try the PDF-to-PPSM workflow in the online conversion app .
You can install the library from PyPI using the following pip command:
Console/Terminal
pip install aspose-slides
How to Convert PDF to PPSM in Python
These are the steps to convert a PDF file to PPSM using Python.
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.PPSM.
System Requirements
Before running the Python conversion example, make sure your environment meets these requirements.
- A supported Windows, Linux, or macOS environment; see System Requirements .
- Python 3.5 or later.
- Aspose.Slides for Python via .NET installed in your environment.
This sample code shows PDF to PPSM Python Conversion
with slides.Presentation() as presentation:
presentation.slides.remove_at(0)
presentation.slides.add_from_pdf("document.pdf")
presentation.save("presentation.ppsm", slides.export.SaveFormat.PPSM)
Save PDF as PPSM in Python
Use the free conversion app to see the PDF-to-PPSM workflow in your browser.Other Supported Conversions
You can also convert PDF to many other file formats. See other supported conversions below: