=> nerds only A blog on rails, php, computing, my bass guitar and stuff

Extracting pages from a pdf on Linux

on in Linux

I was looking for a way to extract two pages from a pdf. I could “print” the pdf and then export it to pdf again but I wanted a better way. Preferably something I could run from the commandline and could possibly automate.

Google returned pdftk so I tried that. Here I’m extracting pages 10 & 11 from a pdf:

sudo apt-get install pdftk
pdftk full.pdf cat 10 11 output excerpt.pdf