Adds script for converting files to PDF
This commit is contained in:
parent
15468b465a
commit
450f300ff4
1 changed files with 13 additions and 0 deletions
13
bin/createPDF
Executable file
13
bin/createPDF
Executable file
|
@ -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…
Add table
Add a link
Reference in a new issue