PDF extracte or combine pages
The free Poppler library includes command line tools that can easily extract pages from a PDF file, or combine pages from multiple PDF files into one PDF file. To do so with Adobe Acrobat or FoxIt generally requires a paid license, but Poppler is a free open-source library.
Extracting page(s) from a PDF into a series of separate PDF files is done with pdfseparate. For example, extract pages 2 to 4 from “in.pdf” to files “out-2.pdf”, “out-3.pdf” and “out-4.pdf” using Poppler:
pdfseparate -f 2 -l 4 in.pdf out-%d.pdfCombining multiple PDF files into one PDF file is done with pdfunite. For example, combine “in1.pdf”, “in2.pdf” and “in3.pdf” into “out.pdf” using Poppler:
pdfunite in-1.pdf in-2.pdf in-3.pdf out.pdfPoppler is installed by:
- Linux:
apt install poppler-utils - macOS:
brew install poppler - Windows: use WSL
poppler
Related: extract raw full-quality images from PDF