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 | |
|---|---|
| Scribus | Desktop page layout software producing commercial grade PDF output |
| ONLYOFFICE | Cloud online office suite with great PDF functionality |
| LibreOffice Draw | Vector graphics editor and diagramming tool that can create PDFs |
| PDFBox | Java tool for working with PDF documents |
| Ghostscript | Ghostscript PostScript / PDF interpreter |
| Dangerzone | Make PDFs safe |
| pdf-compress | Compress an overly large PDF file to smaller monochrome |
| PoDoFo | Easy to use PDF parsing and creation library |
| veraPDF | Industry supported PDF/A validation |
| pdfgrep | Command-line utility to search text in PDF files |
| Rescribe | Desktop tool for performing OCR |
| PDF4QT | PDF editor |
| Scans to PDF | Create small, searchable PDFs from scanned documents |
| rst2pdf | Converts reStructuredText files into styled documents |
| Paper Clip | Edit PDF document metadata |
| open-pdf-sign | Adds standards-based digital signatures, timestamps and validation |
| pdfposter | Print large posters on multiple sheets |
| plakativ | Stretches PDF or raster image across multiple pages |
| PDF Metadata Editor | Simple GUI tool |
| unlockR | Simple tool to decrypt PDF files |
| pdfresurrect | Analyze PDF documents |
| Densify | Compress PDF files using Ghostscript |
| IceBox | Converts images into a PDF file |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.