topdf (259B)
1 #!/bin/sh 2 3 # convert documents to pdf using the doc2pdf.net service 4 # depends: curl 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"