ze souboru input.pdf vybere prvních 5 stran a uloží je jako output.pdf
qpdf input.pdf --pages . 1-5 -- output.pdf