Read the complete article on how to convert a PDF to PowerPoint PPT/PPTX in Python: https://blog.aspose.com/2022/03/04/convert-pdf-to-ppt-in-python/
Last active
February 19, 2023 06:51
-
-
Save aspose-com-gists/56bb8e495d7312e480cb5132f6e5ba2a to your computer and use it in GitHub Desktop.
Convert PDF Files to PowerPoint PPT/PPTX in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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