/// EDIT
Free

Crop PDF API

Crop to an exact box in mm, or automatically to the page's text bounds plus a margin.

/// Quick answer

Crop sets each page's crop box either to an explicit [x0,y0,x1,y1] in millimetres, measured from the top-left of the page, or automatically (box: "auto") to the union of all text on the page plus margin_mm. pages limits which pages are cropped; omitted pages are left untouched.

Try Crop PDF API — free →Read the docs

Free account. No card required.

How does the Crop PDF API work?

One HTTP request from any language. Every ASHDOCS endpoint uses the same X-API-Key header.

curl -X POST https://www.ashdocs.com/api/v2/tools/pdf-crop \
  -H "X-API-Key: ash_live_..." \
  -F "file=@document.pdf" \
  -F 'options={"box":"auto","margin_mm":5}'

Common use cases

RELATED TOOLS