Crop pages of a draft PDF (baked into new page size)
For each listed page, keep only the top-left percent-of-page rect (x,y,width,height in 0–100 — same space as fields). Content is baked into a smaller page via pdf-lib. Fields fully inside the crop are remapped; fields that intersect the cut edge are removed. Unlisted pages are copied unchanged.
POST
/documents/pdf/cropAuthorization
AuthorizationBearer token · headerrequiredPass your API key as a Bearer token. API keys are scoped to specific operations — configure scopes in your organization's Settings → Developer → API Keys.
Request body
requiredapplication/jsonidstringrequiredcropsobject[]requiredmin items 1 · max items 500
Show propertiesHide properties
Array of
objectpageintegerrequiredmin 1
xnumberrequiredmin 0 · max 100
ynumberrequiredmin 0 · max 100
widthnumberrequiredmin 1 · max 100
heightnumberrequiredmin 1 · max 100
Responses
200
Cropped
successbooleanstorage_idstringpage_countintegerfields_removedintegerfields_remappedinteger400
Invalid crop rect or page