Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View proc-rev.sh
1 2 3 4 5 6 7 8 9 10 11
# You'll need a copy of pcl6 (ghostpcl)
i=0
out=`git rev-parse HEAD`
rm -Rf $out
mkdir $out
cat index.html | cut -f1 | cut -d'/' -f2 | while read line; do
i=$((i + 1))
printf "making ${out}/%02d_${line}.pdf\n" $i
./pcl6 -o "${out}/${i}_${line}.pdf" -sDEVICE=pdfwrite "${line}"
done
pdfunite $out/*.pdf $out.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.