#!/bin/bash -x
|
|
|
|
#qpdf 8.4 or newer only
|
|
#qpdf $1 --pages . 1-5 -- $2
|
|
#qpdf older must!! be:
|
|
qpdf $1 --pages $1 1 -- $2
|
|
|
|
|
|
#note: pass in $1 input, $2 output
|
|
#qpdf -version
|
|
#https://github.com/qpdf/qpdf/issues/307
|
|
|
|
#note: this goes real fast. not all pdf splitters
|
|
#go this fast.
|