Skip to content

a set of tools to help with securely redacting and stripping metadata from documents before publishing

License

Notifications You must be signed in to change notification settings

cryptoaustralia/pdf-redact-tools

 
 

Repository files navigation

PDF Redact Tools

PDF Redact Tools

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

Quick Start

Mac OS X

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

Ubuntu

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

Other

PDF Redact Tools isn't yet packaged in any GNU/Linux distributions yet, however it's easy to install by following the build instructions. I haven't attempted to make this work in Windows.

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.

About

a set of tools to help with securely redacting and stripping metadata from documents before publishing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 89.2%
  • Shell 10.8%