We use the free Poppler tools instead of using Acrobat, despite a work/school license. Extracting one or more pages from a PDF file can be done with paid Adobe Acrobat. The free Adobe Reader or FoxIt Reader cannot extract pages. Adobe Acrobat is a large and cumbersome program that installs startup daemons that are not trivially disabled.
To extract pages 2 to 3 from
in.pdf using Poppler:
pdfseparate -f 2 -l 3 in.pdf out.pdf
Note: you must leave a space after
-l as shown.
Poppler is installed by:
apt install poppler-utils
brew install poppler
- Windows: use
Windows Subsystem for Linux
If you can’t get Poppler, GhostScript can also extract pages from PDF, but it’s a more complicated command:
gs -sDEVICE=pdfwrite -dFirstPage=2 -dLastPage=3 -dNOPAUSE -dSAFER -dBATCH -sOutputFile=out.pdf in.pdf
Related: extract raw full-quality images from PDF