pdftk is a useful multi-platform tool for the job (pdftk homepage).
pdftk full-pdf.pdf cat 12-15 output outfile_p12-15.pdf
you pass the filename of the main pdf, then you tell it to only include certain pages (12-15 in this example) and output it to a new file.
Very simple. Use the default PDF reader, select “Print To File” and that’s it!
Note that with this way, the text will no more be searchable, instead all texts are converted to images: this is how “Print” works.
QPDF is great. Use it this way to extract pages 1-10 from
input.pdf and save it as
qpdf input.pdf --pages . 1-10 -- output.pdf
This preserves all metadata associated with that file.
From the manual:
If you wanted pages 1 through 5 from infile.pdf but you wanted the rest of the metadata to be dropped, you could instead run
qpdf --empty --pages infile.pdf 1-5 -- outfile.pdf
You can install it by invoking:
sudo apt-get install qpdf
It is a great tool for PDF manipulation. It’s very fast and has very few dependencies. “It can encrypt and linearize files, expose the internals of a PDF file, and do many other operations useful to end users and PDF developers.”
QPDF’s code repository on GitHub.