Compress a local PDF
abox_pdf_compressCompress PDF files by recompressing embedded images with presets that trade resolution and quality for smaller size. Keeps page layout and reports actual savings.
Instructions
Recompress supported PDF images and rewrite structure using the existing abox.tools engine. Presets trade image resolution and quality for size. Keeps page content streams and verifies page order and geometry; image pixels can change. Reports actual savings and may produce a larger file. No byte-target search. Writes a new unencrypted PDF; signatures become invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Optional resolution override. Zero disables image downsampling. | |
| preset | No | screen | |
| quality | No | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| strip_metadata | No |