scripts

random scripts
git clone https://git.parazyd.org/scripts
Log | Files | Refs

topdf (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"