compress_pdf
Reduce PDF size by downsampling images, keeping text selectable, for files too large to email or upload; already-optimized files remain unchanged.
Instructions
Shrink a PDF by downsampling its images. Image-heavy files lose 30-80% of their size; text stays selectable. Use this when a PDF is too large to email or upload. Already-optimized files come back unchanged rather than larger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF to compress. | |
| level | No | Compression strength. low keeps images at 300 DPI, medium at 150, high at 72. | medium |
| output_path | No | Absolute path to write the result to. Defaults to the input file with a "-papyrio.pdf" suffix. |