Extracting a page from PDF

Related: extract raw full-quality images from PDF


Example: Extract pages 2 to 3 from in.pdf This works on Linux / Mac / Windows using Poppler Utils

pdfseparate -f 2 -l 3 in.pdf out.pdf

Install Poppler

Ghostscript [optional]

If you can’t get Poppler Utils, you can do the same thing via GhostScript:

gs -sDEVICE=pdfwrite -dFirstPage=2 -dLastPage=3 -dNOPAUSE -dSAFER -dBATCH -sOutputFile=out.pdf in.pdf

Tags:

Written by Michael Hirsch, Ph.D. //

Comments