PDF Redact Tools helps with securely redacting and stripping metadata from documents before publishing.


Mac OS X

  • Install Homebrew
  • Open a terminal and type: brew install pdf-redact-tools


You can install PDF Redact Tools from this Ubuntu PPA:

sudo add-apt-repository ppa:micahflee/ppa sudo apt-get update sudo apt-get install pdf-redact-tools


PDF Redact Tools isn’t yet packaged in any GNU/Linux distributions yet, however it’s easy to install by following the build instructions. Windows is not supported.

Source code is available on GitHub.

How to Use

To use it, convert your original document to a PDF.

Then start by exploding the PDF into PNG files:

pdf-redact-tools --explode example_document.pdf

This will create a new folder in the same directory as the PDF called (in this case)example_document_pages, with a PNG for each page.

Edit each page that needs redacting in graphics editing software like GIMP or Photoshop. Note that opening, editing, and saving a PNG will likely make it look slightly different than the other PNGs. For best results, open all PNGs and simply save and close the pages you don’t need to edit.

When you’re done, combine the PNGs back into a flattened, informationless PDF:

pdf-redact-tools --merge example_document.pdf

In this case, the final redacted PDF is called example_document-final.pdf.

If you don’t need to redact anything, but you just want a new PDF that definitely doesn’t contain malware or metadata, you can simply sanitize it.

pdf-redact-tools --sanitize untrusted.pdf

The final document that you can trust is called untrusted-final.pdf.