Transform Documents $5.00 / 1,000 calls Volume price: $0.005/call includes up to 10 pages; then 0.0005 €/page · max 200

Compressed PDF

What this tool does

This tool reduces the size of a PDF file. It can do it without touching the content (recompressing the internal streams) or by turning every page into an image and rebuilding the document, which gives the biggest savings on scanned files.

When to use it

  • Sending large PDFs by email or through forms with size limits.
  • Reducing storage cost for scanned archives and invoices.
  • Preparing documents for a web upload or a mobile app.
  • Making a file easier to download on slow connections.

What to expect

You receive a link to the compressed PDF, plus the size before and after and the percentage saved. If the result would be bigger than the original, the original file is returned untouched and kept_original is true.

Limitations

  • With lossless the text stays selectable and searchable. Files that are already optimised may barely shrink.
  • With strong the text layer is lost: the pages become images. That is the option that really shrinks scanned documents, but the result is not searchable.
  • The input cannot exceed 50 MB or 200 pages.

When it fails

  • The provided file is not a valid PDF.
  • The PDF is encrypted and cannot be opened without a password.
  • The page or size limit is exceeded.

Good to know

  • Start with lossless; it never degrades quality.
  • Use strong with dpi 150 and quality 75 for scanned documents; raise dpi only if the text must stay readable when zoomed.
  • This tool is heavy: provide a public callback URL in the request payload; the result is sent there when the job finishes.
Callback URL required

This is a heavy tool: provide a public callback URL when you run it. The result is POSTed to that URL when the job finishes.

Input data

Parameter Required Example Description
url Yes https://public.downloads.uproc.io/samples/sample.pdf Public URL of the PDF to compress.
level No lossless Compression mode. 'lossless' keeps the text layer; 'strong' rasterizes the pages (smaller, not searchable).
dpi No 150 Only for 'strong': rendering resolution between 72 and 300. Default 150.
quality No 75 Only for 'strong': JPEG quality between 40 and 95. Default 75.

Output data

Field Description
result Signed URL of the compressed PDF.
level Compression mode applied.
size_before Original size in bytes.
size_after Resulting size in bytes.
saved_percent Percentage of size saved (0 when the original was kept).
text_preserved True when the text layer is still selectable (lossless).
kept_original True when compression did not help and the original file is returned.