Git Product home page Git Product logo

pdf-redact-tools's Introduction

PDF Redact Tools

PDF Redact Tools

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

Warning: PDF Redact Tools uses ImageMagick to parse PDFs. While ImageMagick is a versatile tool, it has a history of some terrible security bugs. A malicious PDF could exploit a bug in ImageMagick to take over your computer. If you're working with potentially malicious PDFs, it's safest to run them through PDF Redact Tools in an isolated environment, such as a virtual machine, or by using a tool such as the Qubes PDF Converter instead.

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.

pdf-redact-tools's People

Contributors

b-meson avatar gszathmari avatar jfwblog avatar kud avatar micahflee avatar thijstriemstra avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.