$ pdftk input.pdf cat 2-4 7 9-10 output output.pdf
Feb. 3, 2012, 6:50 a.m. — mmaki
pdftk is the PDF Toolkit
pdftk
input.pdf is the input file.
input.pdf
cat 2-4 7 9-10 concatenate (combine) pages 2,3,4,7,9,10 of input.pdf.
cat 2-4 7 9-10
output output.pdf the resulting pdf file containing the above pages.
output output.pdf
$ ps2pdf -dFirstPage=3 -dLastPage=10 input.pdf output.pdf
Feb. 15, 2012, 11:08 a.m. — Anon6y5E4Use
ps2pdf is a script that comes with Ghostscript - despite the name, it can accept PDF files as input, not just postscript files.
ps2pdf
Only a single contiguous range of pages can be specified.