unite-pdf (244B) - raw
1 #!/bin/sh 2 3 # unite pdf after double side scanning 4 if [ -z "$1" ] || [ -z "$2" ]; then 5 echo "Usage: unite-pdf odd even [output]" 6 else 7 [ -z "$3" ] && { 3="$(mktemp)" ; echo "$3" ; } 8 pdftk "A=$1" "B=$2" shuffle A Bend-1 output "$3" 9 fi