python-scripts/scripts/PDF_to_PPT_Converter/PDF_to_PPT.py

7 lines
504 B
Python
Raw Normal View History

2022-10-08 12:05:50 +00:00
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