Add example usage to README

This commit is contained in:
2026-06-08 11:26:29 -04:00
parent 9e80620a56
commit e4151622b7

View File

@@ -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 - `--min-font-bytes` — re-subset embedded TrueType fonts larger than this
(default `150000`). (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 ## Requirements
The following tools must be on `PATH`: The following tools must be on `PATH`: