Skip to content

Instantly share code, notes, and snippets.

@nicoknoll
Created January 28, 2015 19:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoknoll/dbf66ec8bfb28c5d3622 to your computer and use it in GitHub Desktop.
Save nicoknoll/dbf66ec8bfb28c5d3622 to your computer and use it in GitHub Desktop.
Convert pdf to ppt on mac an linux

In case you want to convert your PT readings from PPT(X) to PDF it's really easy:

  1. Download libreoffice: https://de.libreoffice.org/

If you own an linux you can use the following command:

$ libreoffice --headless --invisible --convert-to pdf --outdir /Users/Nico/Desktop/pt /Users/Nico/Desktop/pt/*.pptx

You just have to change the input and output paths (and the pptx to ppt).

If you own an Mac you can use the following command:

$ cd /Applications/LibreOffice.app/Contents/MacOS
$ ./soffice  --headless --invisible --convert-to pdf --outdir /Users/Nico/Desktop/pt /Users/Nico/Desktop/pt/*.pptx

You just have to change the input and output paths (and the pptx to ppt).

@nikriek
Copy link

nikriek commented Feb 3, 2015

Du kannst ppt bzw. pptx auch gleichzeitig per pattern matching auswählen: http://wiki.bash-hackers.org/syntax/pattern

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