Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# You'll need a copy of pcl6 (ghostpcl)
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}"
pdfunite $out/*.pdf $out.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment