Skip to content

Instantly share code, notes, and snippets.

@vikram-ai
Created August 31, 2020 02:28
Show Gist options
  • Save vikram-ai/5c811d076f7c4d17d3b497fc5fff8224 to your computer and use it in GitHub Desktop.
Save vikram-ai/5c811d076f7c4d17d3b497fc5fff8224 to your computer and use it in GitHub Desktop.
Power point presentation to pdf. [ppt 2 pdf] [python]
# 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)
@Alfacentauree
Copy link

I tried with this function but i have no results( pptx is not converted to pdf)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment