#!/bin/bash -x
|
|
|
|
#qpdf 8.4 or newer only
|
|
#qpdf $1 --pages . 1-5 -- $2
|
|
#qpdf older must!! be:
|
|
#qpdf $1 --pages $1 2-$3 -- $2
|
|
|
|
#part two has a separate sized page in it...
|
|
#need to print out separately
|
|
qpdf $1 --pages $1 2-195,202-205 -- $2
|
|
|
|
|
|
#note: pass in $1 input, $2 output, $3 last page #
|
|
#qpdf -version
|
|
#https://github.com/qpdf/qpdf/issues/307
|
|
|