PDF, trivial tip

January 31, 2012

To extract a subset of pages from a PDF document, on OS X, open it with Preview (not Acrobat Reader), do File > Print, select the page range, and do PDF > Save as PDF. But that only works for one contiguous subset. The more elaborate way, say to remove page 13, is to install Pdftk, open the terminal, set the current directory as that containing the input file, and execute the following command:

$pdftk in.pdf cat 1-12 14-end output out1.pdf

Well, I get an error similar to this one, so to be continued, maybe…