-
-
Save thbar/55d193cac39b8a2cd9d2 to your computer and use it in GitHub Desktop.
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
# Path of LibreOffice installation | |
cd /Applications/LibreOffice.app/Contents/MacOS | |
# General command | |
./soffice --headless --convert-to <extention> <path+file> | |
# Automatically convert all .odt files to pdf | |
./soffice --headless --convert-to pdf ~/Downloads/*.odt | |
# To specify an output folder you can add the --outdir option | |
./soffice --headless --convert-to pdf --outdir /home/user ~/Downloads/*.odt | |
# Options | |
./soffice --help | |
# found at: http://ask.libreoffice.org/en/question/12084/how-to-convert-documents-to-pdf-on-osx/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment