PDF

Split a PDF by page ranges

Creates one PDF per range. Ranges use 1-indexed pages: "1-3,5,7-9" gives three files. For one file per page, list every page: "1,2,3". One credit regardless of how many files come out.

Costs 1 credit per call.

post/pdf-split

Request

  • Base URL: https://api.cofferdock.com
  • URL: https://api.cofferdock.com/pdf-split
  • Auth: API key in header x-api-key

Request body

filestring byte required

The PDF, base64-encoded.

rangesstring required

Required. e.g. "1-3,5,7-9" (one output file per comma-separated group).

output'json' | 'binary' | 'url'

How to return the PDFs: "json" (base64 in the JSON response), "binary" (the PDFs itself, ready for n8n/Make/Zapier) or "url" (a temporary download link, valid 15 minutes). Default: json when the request is JSON, binary when the input was sent raw.

Response

The resulting PDFs.

successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.