It comes in three versions: PDFtk Server (open-source command-line tool), PDFtk Free (freeware) and PDFtk Pro (proprietary paid). It is able to concatenate, shuffle, split and rotate PDF files. It can also show and update metadata.
Thank you for your patience. I have successfully tested this pdftk installer and binary on OS X 10.11, El Capitan:
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg
I will update our PDF Labs site soon to reflect this update.
If you already have pdftk installed from the old installer, this should install right on top of it without a problem -- it shouldn't be necessary to remove the old pdftk before installing this one.
Note that this installer/binary has not yet been tested on older versions of OS X.
Please let me know how this works for you.
I want to thank Aaron for opening this thread and for bringing helpful attention to the problem we were having with the build tools. I also want to thank the MacPorts team for their professional and timely work!
Thanks to github.com/quantiverge, pdftk should be installable under brew. This one is tested in OSX Sierra.
Run the following in the terminal.
brew install https://raw.githubusercontent.com/turforlag/homebrew-cervezas/master/pdftk.rb
Updated with fixes from github.com/zph - thanks!
Please note that in order to install it on macOS High Sierra (10.13.5) or on Mac OS Catalina (10.15) (as mentioned by Ivan Kurmanov in the comments), I had to download the package from:
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg
Of course, it won't let you install normally as it's not downloaded from "App Store" so use following instructions:
In the Finder, locate the app you want to open.
Don’t use Launchpad to do this. Launchpad doesn’t allow you to access the shortcut menu.
Control-click the app icon, then choose Open from the shortcut menu.
Click Open.
The app is saved as an exception to your security settings, and you can open it in the future by double-clicking it just as you can any registered app.
After that just go through the installation process, which is pretty much NEXT - NEXT and enjoy :)
The following brew command DID NOT work for me:
brew install https://raw.githubusercontent.com/turforlag/homebrew-cervezas/master/pdftk.rb
It gave following error:
Failure while executing;
/usr/bin/xar -xf /xxxx/Library/Caches/Homebrew/downloads/\#\{url_sha256\}--\*
exited with 1.
Good luck!
Pdftk is currently not working for me on OSX Sierra.
If you have docker installed on your system, you can use my lightweight docker image instead:
$ docker run -v $(pwd):/files alpine-pdftk --help
Even better, simply use the following script as a drop in replacement:
#!/usr/bin/env bash
docker run --rm -v $(pwd):/files jottr/alpine-pdftk "$@"
Now you can use pdftk as expected: ./pdftk --help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With