Skip to content

Instantly share code, notes, and snippets.

@oldj
Created Nov 23, 2016
Embed
What would you like to do?
#!/usr/bin/env bash
f=type_tmp
if [ ! -d ${f} ]
then
mkdir ${f}
fi
cd ${f}
if [ ! -f wkhtmltopdf ]
then
curl -O http://120.26.200.17:8080/misc/wkhtmltopdf.zip
unzip wkhtmltopdf.zip
fi
if [ ! -f t.html ]
then
touch t.html
fi
./wkhtmltopdf file://$(pwd)/t.html t.pdf
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment