Compress-pdf
compress-pdfFull Description
Operation
- Compress an uploaded PDF (by storage key) and return a downloadable link.
Prerequisites
- Requires a PDF storage key from the upload-document widget or a prior PDF tool result.
Inputs
- fileKey: storage key of the source PDF.
- level: compression intensity.
Output
- New PDF key + download URL + size. Use the returned key for subsequent operations.
Response guidance
- If the original size is known in context, mention compression ratio/percent. Do not invent sizes.
Example
- fileKey="uploads/abc/my.pdf", level="recommended"
Parameters (1 required, 1 optional)
fileKeystringStorage key of the uploaded PDF (example: "uploads/<uuid>/file.pdf").
levelstringCompression intensity: low=best quality, recommended=balanced, extreme=smallest size.
lowrecommendedextremerecommended