This tool requires a publicly accessible PDF URL. If your file is stored locally or in memory, you can upload it to our temporary bucket first using the Get Signed Upload URL endpoint.
Request
Response
metadata object with compression details so you can see exactly how much the file size was reduced.
Compression Levels
| Level | Quality | Best for |
|---|---|---|
low | Highest quality, least compression | Print-ready documents |
medium | Balanced quality and size | General use, email attachments |
high | Most compression, lower quality | Web viewing, maximum size reduction |
The
medium compression level is the default and works well for most use cases. Use low when you need to preserve maximum quality (e.g., print materials) and high when file size is the priority.Parameters
A valid, publicly accessible URL pointing to the PDF file you want to
compress.
The compression intensity. Must be one of:
"low", "medium", or "high".
Default: "medium".The desired filename for the compressed PDF. Must end with
.pdf. If not
provided, the original filename from the URL will be used, or a random name
will be generated.Number of seconds that the generated signed URL will take to expire. Must be
between 60 (1 minute) and 604800 (7 days). Default: 3600 (1 hour).