mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 14:01:12 +00:00
Added script for PDF to PPT conversion
This commit is contained in:
parent
5d4309d62f
commit
f56c584092
7
scripts/PDF_to_PPT_Converter/PDF_to_PPT.py
Normal file
7
scripts/PDF_to_PPT_Converter/PDF_to_PPT.py
Normal 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
|
17
scripts/PDF_to_PPT_Converter/README.md
Normal file
17
scripts/PDF_to_PPT_Converter/README.md
Normal 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.**
|
Loading…
Reference in New Issue
Block a user