Skip to content

6. A folder of PDFs

squeeze --pdf makes PDFs smaller with the same engine as QwikSqueeze for Mac. Their text stays text, and their links, bookmarks and form fields keep working: only the images change, and only as far as the level allows.

% squeeze --pdf Reports
squeeze: Saved as Annual report 2025 2.pdf: 7.6 MB → 823 KB, 89% saving.
squeeze: Inspection report.pdf was left as it was. Squeezed, it would be 1.3 MB, larger than its 1.1 MB now.
squeeze: Saved as Board pack Q3 2.pdf: 15.5 MB → 3.4 MB, 78% saving.
squeeze: Saved as Tender response 2.pdf: 6.2 MB → 1.4 MB, 77% saving.
squeeze: Saved as Safety audit 2.pdf: 5.5 MB → 1.3 MB, 76% saving.
squeeze: Saved as Product catalogue 2.pdf: 3.9 MB → 1.3 MB, 66% saving.
squeeze: Saved as Floor plans 2.pdf: 2.3 MB → 557 KB, 75% saving.
squeeze: Saved as Training notes 2.pdf: 2.9 MB → 1.1 MB, 61% saving.
squeeze: Saved as Site survey 2.pdf: 3.3 MB → 749 KB, 77% saving.
squeeze: 8 PDFs squeezed, 1 left as they were, 0 could not be squeezed.
  • Each smaller PDF is saved beside the original, which is kept.
  • A PDF that wouldn't get smaller is left as it was, and you're told. This happens most with PDFs that hold little but text, especially as PDF/A adds the fonts a PDF uses but doesn't carry.
  • Signed PDFs are left as they were: making them smaller would break the signature. So are PDFs locked with a password.
  • The last line counts them all. The exit code is 0 unless a PDF couldn't be squeezed.
Option What it does
--pdf=smallest The file compression for this command: fastest, fast, balanced, smallest, or 0 to 9.
--pdfi=smallest The images inside: lossless, same, balanced or smallest.
--pdfa=off Don't save as PDF/A.
--pdfn=-small Add "-small" to the new file's name.

See the PDF options for every choice.