Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
aspose-com-gists / pdf-to-ppt.py
Last active February 19, 2023 06:51
Convert PDF Files to PowerPoint PPT/PPTX in Python
import aspose.slides as slides
# Create presentation
with slides.Presentation() as pres:
# Remove default slide from presentation
pres.slides.remove_at(0)
# Import PDF to presentation
pres.slides.add_from_pdf("candy.pdf")