scripts

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

commit 7d04bf76731ebdee8862063bae3a23fd35ae1b04
parent 5b82d192e1c7d1c4f9b936fa6a76094aac69d01c
Author: lostd <lostd@2f30.org>
Date:   Sun Aug 11 14:17:31 +0300

service is dead now

Diffstat:
zohopdf | 23-----------------------
1 file changed, 0 insertions(+), 23 deletions(-)
diff --git a/zohopdf b/zohopdf @@ -1,23 +0,0 @@ -#!/bin/sh - -# Supported files: -# * Microsoft Office: doc, docx, xls, xlsx, ppt, pptx, pps -# * OpenDocument: odt, ods, odp -# * OpenOffice: sxw, sxc, sxi -# * Other: rtf, txt, html, csv, tsv - -if [ -n "$1" ]; then FILE="$1"; else - echo "Usage: $0 document"; exit -fi -NAME=$(echo $FILE | sed "s/\.[^\.]*$//") - -MAINURL='https://viewer.zoho.com/converter' -COOKIEJAR='/tmp/zohocookie.txt' -AGENT= -curl --cookie-jar $COOKIEJAR $MAINURL > /dev/null -COOKIE=$(grep zvcsr $COOKIEJAR | awk '{ print $7 }') - -curl --referer $MAINURL \ ---form "file=@$FILE" --form "format=pdf" \ ---form "zvcsrcoo=$COOKIE" --cookie $COOKIEJAR \ -"https://viewer.zoho.com/convert.do" > "$NAME.pdf"