Skip to content

Instantly share code, notes, and snippets.

Forked from diogo-almeida/docx2pdf
Last active Aug 29, 2015
What would you like to do?
# Path of LibreOffice installation
cd /Applications/
# 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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment