Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active February 19, 2023 06:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/56bb8e495d7312e480cb5132f6e5ba2a to your computer and use it in GitHub Desktop.
Save aspose-com-gists/56bb8e495d7312e480cb5132f6e5ba2a to your computer and use it in GitHub Desktop.
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")
# Save presentation
pres.save("pdf-to-ppt.pptx", slides.export.SaveFormat.PPTX)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment