macOS Finder Services that compress PDFs (especially iPhone Notes scans) using Ghostscript. Free alternative to PDF Squeezer.
Two double-clicks, no Terminal:
- Ghostscript: download the signed Ghostscript installer (47 MB; maintained by Richard Koch as part of MacTeX) and double-click.
- pdfslim: download the latest
pdfslim-X.Y.Z.pkgfrom Releases and double-click.
Both installers are signed and notarized, so Gatekeeper accepts them without warnings.
brew install ghostscript
git clone git@github.com:rbtree/pdfslim.git
cd pdfslim
./install.shRight-click any PDF in Finder, choose Services:
- PDF Slim - Light (Print, 300dpi) - Ghostscript
/printerpreset; ~89% reduction, color preserved, archival quality - PDF Slim - Medium (eBook, 150dpi) - Ghostscript
/ebookpreset; ~94% reduction, color preserved, sweet spot
The compressed file appears alongside the original with a _light or
_medium suffix. Original is never modified.
If you installed via .pkg, download the new release and double-click; the installer overwrites the previous version in place.
If you installed from source:
cd pdfslim
git pull
./install.shIf you installed via .pkg:
sudo pdfslim-uninstallIf you installed from source:
cd pdfslim
./uninstall.sh- macOS 12 or later
- Ghostscript (
brew install ghostscript) - Python 3 (only for
install.sh; ships with macOS)
pdfslim is released under the MIT License.
pdfslim invokes Ghostscript as a separate program via subprocess; it does
not bundle, link to, or distribute Ghostscript itself. Ghostscript is an
independent project licensed by Artifex Software under the
AGPLv3 (free) or a
commercial license. When you install
Ghostscript via brew install ghostscript you agree to its license terms,
which apply to your use of gs regardless of pdfslim.