ttopdf - scripts - random scripts
HTML git clone https://git.parazyd.org/scripts
DIR Log
DIR Files
DIR Refs
---
ttopdf (271B)
---
1 #!/bin/sh
2 #
3 # parazyd - (c) wtfpl 2016
4 # convert documents to pdf using the doc2pdf.net service
5
6 if test -z "$1"; then
7 echo usage: $(basename $0) document && exit 1
8 fi
9
10 SRV=http://www.doc2pdf.net/convert/document.pdf
11
12 curl -F "inputDocument=@$1" $SRV > "${1%.*}.pdf"