DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far...

Welcome! This is a Q&A website for computer programmers and users alike, focused on helping fellow programmers and users. Read more

What are you stuck on? Ask a question and hopefully somebody will be able to help you out!
+2 votes

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?

by

1 Answer

+2 votes

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 cat 4-9 output out.pdf

by
edited by
+1

Could you please edit the answer with the actual command rather than just a link (links die all the time)?

Contributions licensed under CC0
...