Skip to main content

Compress a PDF

POST 

/api/v1/tools/compress

Rewrites the PDF and attempts to recompress embedded images in a lossy way, based on the selected level (low, medium, high). Image-heavy PDFs can often be reduced noticeably in size; purely text-based PDFs may not shrink much.

The referenced input must be a PDF. DOCX and other file types are rejected with a 400 error.

File lifecycle: The input file in the input bucket is deleted after a successful operation.

Request

Responses

Compressed PDF returned as binary response