Skills/PDF/Compress

Compress

~2 credits / MB (up to 20)

Reduces a PDF's file size through lossless stream recompression and optionally linearizes it so web viewers can render the first page before the rest loads. Works best on text- and vector-heavy PDFs; image-heavy documents shrink only marginally since embedded images are not downsampled.

Use when

You want a smaller PDF to email or upload, or a web-optimized one.

Not for

Aggressively shrinking image-heavy scans (images are not downsampled).

Cost

~2 credits / MB (up to 20)

Billed at 0.1 credits per MB of the input file, regardless of how much it shrinks.

Estimated; the actual charge depends on your input and is shown in the response.

What it accepts

Set these inside the intent when you run it.

source_pdfrequired

URL of the PDF to compress.

leveloptional

Compression effort: light (minimal change), balanced (default, also linearizes), or max (smallest output, also linearizes).

What you get back

A compressed PDF file as a downloadable URL, along with the new size and compression ratio.

Run it

Run this sub-skill directly: pin it with operation and pass its inputs in the intent. (Omit operation and the PDF skill will route from your intent instead.)

curl -X POST "https://skill.askfaro.com/skills/pdf/run" \
  -H "Authorization: Bearer $FARO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"intent":{"operation":"compress","source_pdf":"https://example.com/large-document.pdf","level":"balanced"}}'

Example requests

  • Compress this PDF so I can email it
  • Make this PDF smaller and optimize it for the web
  • Shrink this presentation PDF as much as possible