I have a PDF file and want to make a new PDF containing only a selected range (or multiple ranges) of pages from the original PDF. How can I do it using the terminal?
You can use pdftk as specified in this post. For example, to extract pages from 4 to 9 from a file called input.pdf:
pdftk
input.pdf
pdftk input.pdf cat 4-9 output out.pdf
Could you please edit the answer with the actual command rather than just a link (links die all the time)?