PDF

pdf-compress – monochrome PDF compression

pdf-compress is a command-line script for reducing the size of scanned PDF documents. It is particularly effective on files containing dark text against a light background, where high-resolution colour or greyscale images can be converted into compact monochrome representations.

The script processes scanned pages using image conversion and Ghostscript, reducing their colour depth to one bit per pixel. This substantially reduces storage requirements for many documents, although the resulting images do not retain the full quality of the original scans. The background and foreground thresholds can be adjusted to improve the visibility of faint or uneven text.

pdf-compress can also preserve existing searchable text or add an OCR text layer before compressing the page images. This helps retain text search functionality without relying on recognition performed against the reduced-quality output.

This is free and open source software.

Key Features

  • Reduce the size of scanned PDF files through monochrome image conversion.
  • Convert page images to one-bit pixel representations.
  • Optimised for dark text on light backgrounds.
  • Configure the threshold used to convert backgrounds to white.
  • Adjust foreground thresholds to improve faint text.
  • Specify a target maximum output size as a percentage of the original.
  • Preserve existing searchable text layers.
  • Add a searchable OCR text layer when supported tools are available.
  • Option to omit the text layer and create an image-only PDF.
  • Detect files previously processed by pdf-compress.
  • Skip documents already processed by the script.
  • Test whether a document has previously been compressed without modifying it.
  • Optionally remove an apparently blank final page.
  • Specify a separate destination file or directory.
  • Option to replace the original document.
  • Customise the directory used for temporary processing files.
  • Quiet output mode for use in scripts.

Website: www.timedicer.co.uk
Support:
Developer: Dominic Raferd
License: Apache License 2.0

pdf-compress is written in Bash. Learn Bash 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