2011-09-13

More PDF Hacking

I've been using the pdftk tool to make command-line changes to PDF files since December 2010.

Here are a few more useful examples:

:: Add a stamp image to an existing PDF file
pdftk MyDoc.pdf stamp Stamp.pdf MyStampedDoc.pdf

:: Extract pages from a PDF file
pdftk MyDoc.pdf cat 1-2 output Pages1and2ofMyDoc.pdf

:: Split select pages from multiple PDFs into a new document
pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf

Feel free to share more useful commands in the comments section!

No comments: