• This repository has been archived on 06/May/2020
  • Stars
    star
    524
  • Rank 83,944 (Top 2 %)
  • Language
    Python
  • License
    Other
  • Created over 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

PDF Redact Tools

Warning: This project is no longer maintained. A much better tool is dangerzone.

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.

More Repositories

1

gpgsync

🔒 GPG Sync is designed to let users always have up-to-date public keys for other members of their organization
Python
344
star
2

react-scripts

⚙ shared react app configs
JavaScript
220
star
3

autocanary

Makes generating machine-readable, digitally signed warrant canary statements simpler
Python
147
star
4

dangerzone-converter

dangerzone has moved to https://github.com/freedomofpress/dangerzone
Python
39
star
5

aws-profile-gpg

🔐 ☁ī¸ Run aws-cli commands using IAM Access Keys stored in a GPG-encrypted credentials file
Python
37
star
6

flock-agent

đŸĻ‰ Agent for Flock, the privacy-preserving fleet management system
Python
32
star
7

flock-server

đŸĻ‰ Flock is a privacy-preserving fleet management system powered by osquery and the Elastic Stack
Python
19
star
8

keylist-rfc

🔏 turning the system behind GPG Sync into an Internet standard
Makefile
16
star
9

gpgsync-firstlook-fingerprints

Signed list of OpenPGP fingerprints for First Look employees
15
star
10

firstlookmedia.github.io

11
star
11

deployables

🗑ī¸ a basket of deploy scripts
Shell
10
star
12

homebrew-firstlookmedia

đŸģ homebrew tap for first look media projects
Ruby
3
star
13

dangerzone.rocks

dangerzone has moved to https://github.com/freedomofpress/dangerzone
CSS
3
star
14

hagrid-verifier

Submit all the keys on a keylist to keys.openpgp.org, and request email verification for all UIDs
Python
3
star
15

whistleblower

Headless browser testing utils via Jest and Puppeteer
JavaScript
2
star
16

deployables2

Python
2
star
17

keylist

First Look Media's keylist
Python
2
star
18

listcrunch

A JS port of MuckRock's listcrunch python library
TypeScript
1
star
19

ecstatic

:squirrel: 🔍 automatically update ecs agents and report issues via webhook
Python
1
star
20

pst

Clojure library to parse PFF databases.
Clojure
1
star
21

docker-placeholder-app

HTTP app intended to be used as a placeholder when spinning up an ECS cluster
Shell
1
star
22

docker-https-redirect

↩ī¸ redirect http to https
1
star