NOTICE!This project is no longer maintained. The author of PDFtk has not released
a new source distribution since July 24, 2013.
The latest source release (2.02) does not work for Mac OS X 10.11 (El Capitan) and above.
See this Stack Overflow post
for a binary distribution and alternatives to PDFtk.
Note that this formula requires the
ecj
(for Java) and
gcc
(for gcj) formulas. By default, it requires gcc with the
--with-all-languages flag. You can pass --with-java to brew install pdftk
if you prefer to install gcc with only Java support (or if you already have
that version of gcc installed).
To confirm that installation worked:
$ which pdftk
/usr/local/bin/pdftk
$ pdftk --version
pdftk 2.02 a Handy Tool for Manipulating PDF Documents
Copyright (c) 2003-13 Steward and Lee, LLC - Please Visit: www.pdftk.com
This is free software; see the source code for copying conditions. There is
NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Usage
Typing pdftk at the shell prompt gives you a summary of commands:
请发表评论