Advertisement
marcoshalano

odf2pdf.sh

Mar 31st, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # To install put inside a directory present on your path and set execute permission.
  4. # To use just pass as arguments the files you want to convert to pdf. eg.:
  5. # odf2pdf.sh *.odt
  6.  
  7. if [ -e /usr/bin/unoconv ]; then
  8.     unoconv --format=pdf --verbose "$@"
  9. else
  10.     libreoffice --headless --convert-to pdf "$@"
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement