Created
August 31, 2020 02:28
-
-
Save vikram-ai/5c811d076f7c4d17d3b497fc5fff8224 to your computer and use it in GitHub Desktop.
Power point presentation to pdf. [ppt 2 pdf] [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
# requirements | |
# sudo apt install unoconv | |
# pip install tqdm | |
# pip install glob | |
import glob | |
import tqdm | |
path = "<INPUT FOLDER>" | |
files = [f for f in glob.glob(path + "**/*.pptx", recursive=True)] | |
for f in tqdm.tqdm(files): | |
command = "unoconv -f pdf \"{}\"".format(f) | |
os.system(command) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried with this function but i have no results( pptx is not converted to pdf)