PDF

Dangerzone – sanitise untrusted documents

Dangerzone is a document sanitisation application designed to reduce the risks associated with opening untrusted files. It converts potentially malicious PDFs, office documents, ebooks and images into new PDF files that do not retain the original document’s active content.

The application processes documents inside an isolated environment. The original file is rendered into raw pixel data, which is then used outside the sandbox to construct a new PDF. This removes scripts, embedded files and other active elements from the original document. The sandbox has no network access and uses additional isolation mechanisms to limit the impact of malicious content.

Because the output is reconstructed from images, features such as hyperlinks, interactive forms and bookmarks are lost. Dangerzone can optionally perform optical character recognition (OCR) to restore searchable and selectable text, although the accuracy depends on the source material.

This is free and open source software.

Key Features

  • Convert potentially dangerous documents into sanitised PDF files.
  • Support for PDFs, Microsoft Office documents, OpenDocument files, EPUB ebooks and common image formats.
  • Render source documents into raw pixel data inside an isolated environment.
  • Rebuild output PDFs from pixel data rather than retaining the original document structure.
  • Run document conversion inside containers without network access.
  • Additional process isolation through gVisor.
  • Use Podman to manage the isolated conversion environment.
  • Remove embedded scripts, hyperlinks, forms, attachments and original document metadata during conversion.
  • Optional OCR for generating searchable and selectable text in the output PDF.
  • Support for OCR in multiple languages.
  • Compress sanitised PDF output.
  • Process several documents through the graphical interface.
  • Command-line interface for automated conversion.
  • Open converted documents in the user’s preferred PDF viewer.
  • Independent updates for the document conversion environment.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/freedomofpress/dangerzone
Support:
Developer: Freedom of the Press Foundation
License: GNU Affero General Public License v3.0

Dangerzone at startup

Dangerzone is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

PDF Tools
ScribusDesktop page layout software producing commercial grade PDF output
ONLYOFFICECloud online office suite with great PDF functionality
LibreOffice DrawVector graphics editor and diagramming tool that can create PDFs
PDFBoxJava tool for working with PDF documents
GhostscriptGhostscript PostScript / PDF interpreter
DangerzoneMake PDFs safe
pdf-compressCompress an overly large PDF file to smaller monochrome
PoDoFoEasy to use PDF parsing and creation library
veraPDFIndustry supported PDF/A validation
pdfgrepCommand-line utility to search text in PDF files
RescribeDesktop tool for performing OCR
PDF4QTPDF editor
Scans to PDFCreate small, searchable PDFs from scanned documents
rst2pdfConverts reStructuredText files into styled documents
Paper ClipEdit PDF document metadata
open-pdf-signAdds standards-based digital signatures, timestamps and validation
pdfposterPrint large posters on multiple sheets
plakativStretches PDF or raster image across multiple pages
PDF Metadata EditorSimple GUI tool
unlockRSimple tool to decrypt PDF files
pdfresurrectAnalyze PDF documents
DensifyCompress PDF files using Ghostscript
IceBoxConverts images into a PDF file

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted