Fill a PDF form (or list its fields)
fill_pdf_formFill 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.
Returns a temporary download link (valid 15 minutes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Field values: { "fieldName": "value", "checkbox": true }. As a query parameter it must be a JSON string. | |
| file | Yes | The PDF, base64-encoded. | |
| flatten | No | true = turn the filled fields into plain page content so they can no longer be edited. Default false (the form stays editable). | |
| inspect | No | Only list the fields. |