Added script for PDF to PPT conversion

This commit is contained in:
Manice18 2022-10-08 17:35:50 +05:30
parent 5d4309d62f
commit f56c584092
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,7 @@
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

View File

@ -0,0 +1,17 @@
# <center> Requirements
1. Step-I:
Install the required python dependency.
`pip install aspose.slides`
2. Step-II:
Give the proper destination/path of the PDF file you want to convert into PPT.
For example, "E:\test1\test.pdf" .
3. Step-III:
Give the proper destination/path for the converted file, ie, the path where you want your file to be saved.
For example, "E:\test1\test.ppt" .
***
**Please watch out for escape sequences while writing the path.**