Some qpdf commands

Split pdf pages into separate files:

qpdf --split-pages=1 i.pdf out-%d.pdf

1 being 1 page per file

Delete pages:

qpdf i.pdf --pages . 1-3,6 -- out.pdf

Merge pdfs into a single pdf:

qpdf --empty --pages a.pdf b.pdf c.pdf -- out.pdf
qpdf --empty --pages *.pdf -- out.pdf

# Take only the 1st page of a.pdf
qpdf --empty --pages a.pdf 1 b.pdf c.pdf -- out.pdf

# Another method, yields: b1, a3, c2
qpdf a.pdf --pages b.pdf 1 . 3 c.pdf 2 -- out.pdf

Page ranges:

Some other options/flags:

docs