compress_pdf
Compress PDFs to reduce file size using PDF4me API. Choose from Web, Print, or Screen optimization profiles to get smaller files for faster sharing.
Instructions
Compress a PDF file using the PDF4me API to reduce file size. Provide the local file path to the PDF. Choose an optimization profile: Web (fast download), Print (high-quality), or Screen (screen viewing). Optionally specify an output directory and output file name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_dir | No | ||
| optimize_profile | No | Web | |
| output_file_name | No |