Adds script for converting files to PDF

Jonathan Hodgson 6 years ago
parent a32851d339
commit 5a733a917b
  1. 13
      bin/createPDF

@ -0,0 +1,13 @@
#!/usr/bin/env sh
file=$(readlink -f "$1")
dir=$(dirname "$file")
base="${file%.*}"
cd "$dir" || exit
case "$file" in
*\.doc|*\.docx) libreoffice --convert-to pdf "$file" ;;
*) echo "Don't know how to convert $file"
libreoffice --convert-to pdf Checkit\ website\ development\ brief.docx
Loading…
Cancel
Save