python-scripts/scripts/PDF_to_PPT_Converter/PDF_to_PPT.py
2022-10-08 17:35:50 +05:30

7 lines
504 B
Python

import aspose.slides as slides
import aspose.pydrawing as drawing
with slides.Presentation() as presentation: # Create presentation
presentation.slides.remove_at(0) # this removes default slide from presentaion
presentation.slides.add_from_pdf("path") # here path denotes the destination of the file you want to convert
presentation.save("path", slides.export.SaveFormat.PPT) # here path denotes the destination of the converted file / the path where you want to save the converted PDF file