{"id":13936531,"url":"https://github.com/firstlookmedia/pdf-redact-tools","last_synced_at":"2025-07-19T22:30:41.431Z","repository":{"id":14914779,"uuid":"17638878","full_name":"firstlookmedia/pdf-redact-tools","owner":"firstlookmedia","description":"a set of tools to help with securely redacting and stripping metadata from documents before publishing","archived":true,"fork":false,"pushed_at":"2020-05-05T22:31:33.000Z","size":68,"stargazers_count":530,"open_issues_count":17,"forks_count":50,"subscribers_count":33,"default_branch":"master","last_synced_at":"2024-08-08T23:23:55.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firstlookmedia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-11T17:06:39.000Z","updated_at":"2024-07-23T07:16:58.000Z","dependencies_parsed_at":"2022-08-10T01:50:21.388Z","dependency_job_id":null,"html_url":"https://github.com/firstlookmedia/pdf-redact-tools","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstlookmedia%2Fpdf-redact-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstlookmedia%2Fpdf-redact-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstlookmedia%2Fpdf-redact-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstlookmedia%2Fpdf-redact-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstlookmedia","download_url":"https://codeload.github.com/firstlookmedia/pdf-redact-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226686729,"owners_count":17666928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-07T23:02:45.551Z","updated_at":"2024-11-27T04:31:08.965Z","avatar_url":"https://github.com/firstlookmedia.png","language":"Python","funding_links":[],"categories":["Python","Networks"],"sub_categories":["Advanced Search Operators:"],"readme":"# PDF Redact Tools\n\n_Warning: This project is no longer maintained. A much better tool is [dangerzone](https://dangerzone.rocks)._\n\n![PDF Redact Tools](/logo.png)\n\nPDF Redact Tools helps with securely redacting and stripping metadata from documents before publishing.\n\n*Warning:* PDF Redact Tools uses ImageMagick to parse PDFs. While ImageMagick is a versatile tool, it has a history of some [terrible](https://imagetragick.com/) 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](https://github.com/QubesOS/qubes-app-linux-pdf-converter) instead.\n\n## Quick Start\n\n### Mac OS X\n\n* Install [Homebrew](http://brew.sh/)\n* Open a terminal and type `$ brew install pdf-redact-tools`\n\n### Ubuntu\n\nYou can install PDF Redact Tools from this Ubuntu PPA:\n\n```sh\n$ sudo add-apt-repository ppa:micahflee/ppa\n$ sudo apt-get update\n$ sudo apt-get install pdf-redact-tools\n```\n\n### Other\n\nPDF Redact Tools isn't yet packaged in any GNU/Linux distributions yet, however it's easy to install by following the [build instructions](/BUILD.md). I haven't attempted to make this work in Windows.\n\n## How to Use\n\nTo use it, convert your original document to a PDF.\n\nThen start by exploding the PDF into PNG files:\n\n```sh\n$ pdf-redact-tools --explode example_document.pdf\n```\n\nThis 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.\n\nEdit 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.\n\nWhen you're done, combine the PNGs back into a flattened, informationless PDF:\n\n```sh\n$ pdf-redact-tools --merge example_document.pdf\n```\n\nIn this case, the final redacted PDF is called `example_document-final.pdf`.\n\nIf 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.\n\n```sh\n$ pdf-redact-tools --sanitize untrusted.pdf\n```\n\nThe final document that you can trust is called `untrusted-final.pdf`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstlookmedia%2Fpdf-redact-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstlookmedia%2Fpdf-redact-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstlookmedia%2Fpdf-redact-tools/lists"}