PDF

Fill a PDF form (or list its fields)

Fills the fields of an existing PDF form (AcroForm) with the values in data. Without data (or with inspect=true) it returns the list of fields instead, so you know their names. Set flatten=true to make the result non-editable.

Costs 1 credit per call.

post/pdf-fill-form

Request

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

Request body

filestring byte required

The PDF, base64-encoded.

dataobject

Field values: { "fieldName": "value", "checkbox": true }. As a query parameter it must be a JSON string.

flattenboolean

true = turn the filled fields into plain page content so they can no longer be edited. Default false (the form stays editable).

inspectboolean

Only list the fields.

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

How to return the PDF: "json" (base64 in the JSON response), "binary" (the PDF 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 filled PDF, or the list of fields in inspect mode.

OR
OR

Changes

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