pdftk

Version: 1.43 || Release Date: 2010-09-30 || License: GPL App Owner: idl3

If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a command-line tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to: Merge PDF Documents, Split PDF Pages into a New Document, Fill PDF Forms with FDF Data and/or Flatten Forms, Apply a Background Watermark, Report on PDF Metrics such as Metadata, Bookmarks, and Page Labels, Update PDF Metadata, Attach Files to PDF Pages or the PDF Document...

Suggest screenshot/icon / Suggest new version

4 Opinions

To clear up anoved's comment below: The download link above actually goes to an installer that includes the binary plus all necessary libraries (in contrast to anoved's binary which is unusable without the gcj libraries).

For the record, I also started building this with MacPorts, until I noticed it had started downloading gcc 4.2... supposedly an 8-hour build(!). This is because it needs gcj (no, it's written in C++ but for some diabolical reason they insist on linking up some Java libraries... so why not write the app in Java in the first instance?). brian d foy has an amusing article on compiling pdftk in his oreillynet column. Take my advice and stick to the binary installer.

For those who don't want to use a package manager and who don't want to built pdftk themselves I've provided an Intel Mac binary of the current version of pdffk (1.41): http://anoved.net/2007/11/pdftk-141-for-intel-macs.html

I managed to build and install it using DarwinPorts (or MacPorts, as it's now called - www.macports.org)

Had a look... It doesn't seem to have an installer, and seems unnecessarily hard to build yourself...