Cut select pages from a pdf file and create a new file from those pages.

ps2pdf -dFirstPage=3 -dLastPage=10 input.pdf output.pdf

February 15, 2012Anon6y5E4Use

Explanation

ps2pdf is a script that comes with Ghostscript - despite the name, it can accept PDF files as input, not just postscript files.

Limitations

Only a single contiguous range of pages can be specified.

Related one-liners

Cut select pages from a pdf file and create a new file from those pages.

 pdftk input.pdf cat 2-4 7 9-10 output output.pdf

February 3, 2012mmaki