From e4151622b7a27a8253af874bc540506082be7741 Mon Sep 17 00:00:00 2001 From: "Christopher M. Punches" Date: Mon, 8 Jun 2026 11:26:29 -0400 Subject: [PATCH] Add example usage to README --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index f145210..30d71b3 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,30 @@ pdf-slim input.pdf [output.pdf] [--dpi 200] [--min-font-bytes 150000] - `--min-font-bytes` — re-subset embedded TrueType fonts larger than this (default `150000`). +### Example + +``` +[ phanes@forge.silogroup.lan ] << ~/Downloads >> + +[- du -sh 2026-06-08* +28K 2026-06-08.docx +1.8M 2026-06-08.pdf + +[ phanes@forge.silogroup.lan ] << ~/Downloads >> + +[- pdf-slim 2026-06-08.pdf 2026-06-08-small.pdf +input: 2026-06-08.pdf (1,852,511 bytes) +method: font-resubset (pixel-identical at 200 dpi) +output: 2026-06-08-small.pdf (192,810 bytes, -89.6%) + +[ phanes@forge.silogroup.lan ] << ~/Downloads >> + +[- du -sh 2026-06-08* +28K 2026-06-08.docx +1.8M 2026-06-08.pdf +192K 2026-06-08-small.pdf +``` + ## Requirements The following tools must be on `PATH`: