Skip to content

Instantly share code, notes, and snippets.

@pwgerman
Created October 8, 2016 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwgerman/1927d5da307a2f697cbc5beeab7c803f to your computer and use it in GitHub Desktop.
Save pwgerman/1927d5da307a2f697cbc5beeab7c803f to your computer and use it in GitHub Desktop.
LibreOffice terminal launch command /usr/local/bin/soffice
#!/bin/bash
# Need to do this because symlink won't work
# It complains about some .plist files
/Applications/LibreOffice.app/Contents/MacOS/soffice "$@"
# Example to convert an excel file to pdf
# $ soffice --headless --convert-to pdf:"calc_pdf_Export" /path/to/some/.xlsx/ file
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment