Extracting a page from PDF (for free)

Related: extract raw full-quality images from PDF


Example: Extract page(s) from PDF with either PDFtk or GhostScript. This works on Linux/Mac/Windows.

pdftk in.pdf cat 2-3 output out.pdf

OR

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

This example extracts pages 2-3 from multi-page PDF file in.pdf.

Leave a Comment