/squashPDFs

Combine image and text PDFs into low-res PDF

Primary LanguagePythonMIT LicenseMIT

squashPDFs

A simple utility that takes a directory of PDFs containing images and a directory of PDFs containing text and makes a multi-page low-res PDF with images and text combined.

Usage

python3 squashPDFs.py ~/Documents/image_pdfs ~/Documents/text_pdfs ~/Documents/output.pdf

Dependencies

Installation

If you use the Nix package manager then in the terminal, just enter:

nix-shell

Otherwise ensure you have Python3.8, pyPDF2 and Ghostscript installed.

Installing Nix

Instructions for Linux and pre macOS Catalina

For macOS Catalina users the recommended method is here