Skip to content

Instantly share code, notes, and snippets.

@nathankerr
Created February 29, 2012 16:48
Show Gist options
  • Save nathankerr/1942393 to your computer and use it in GitHub Desktop.
Save nathankerr/1942393 to your computer and use it in GitHub Desktop.
bookmaker ps filter
#!/bin/bash
INPUT=`mktemp --tmpdir input.XXX`
OUTPUT=`mktemp --tmpdir output.XXX`
ps2pdf13 - $INPUT
chapbook.sh $INPUT $OUTPUT 2>&1 > /dev/null
pdf2ps $OUTPUT -
[ -e $INPUT ] && rm -f $INPUT
[ -e $OUTPUT ] && rm -f $OUTPUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment