scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

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"