Zum Hauptinhalt springen

Compress a PDF

POST 

/pdf/compress

Rewrites a PDF to make it smaller without losing anything: objects packed into compressed streams, identical streams stored once, images recompressed losslessly and fonts cut down to the glyphs the document shows. Image quality is never lowered. When the rewrite is not smaller, the render keeps the source as it was, so its bytes are the source's. The source is a stored PDF named as source in a JSON body, or an upload as multipart/form-data with the PDF as file (never stored). Costs 0.5 units on live keys; Starter plan and above. A PDF/A answers 422 source_invalid, a signed or password-protected PDF 422 source_invalid or source_encrypted. Needs render:create.

Request​

Responses​

The render of the smaller PDF.