First, get a copy of the source code.
git clone https://github.com/micahflee/pdf-redact-tools.git
cd pdf-redact-tools
Install dependencies:
sudo apt-get install imagemagick libimage-exiftool-perl python-stdeb python-all fakeroot build-essential
Create a .deb and install it:
./build_deb.sh
sudo dpkg -i deb_dist/pdf-redact-tools_*-1_all.deb
Install dependencies:
sudo dnf install rpm-build ImageMagick perl-Image-ExifTool
Create a .rpm and install it:
./build_rpm.sh
sudo dnf install dist/pdf-redact-tools-*-1.noarch.rpm
The easiest way to get this working on OS X is by installing dependencies with Homebrew.
Install dependencies:
brew install imagemagick exiftool gs
Install pdf-redact-tools systemwide:
sudo cp pdf-redact-tools /usr/local/bin