Fill a PDF template
anvil_fill_pdfFill an Anvil PDF template (cast) with data and return the finished PDF as base64. REST: POST /fill/{castEid}.pdf. Returns { filename, byteLength, pdfBase64 }. The data object's keys are the template's field aliases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Object mapping the template's field aliases to values, e.g. { "name": "Sam", "date": "2026-07-16" }. | |
| title | No | Optional title embedded in the generated PDF metadata. | |
| cast_eid | Yes | The cast (PDF template) eid to fill (from anvil_get_cast). | |
| fontSize | No | Optional default font size for filled text. | |
| textColor | No | Optional default text color as a hex string, e.g. #333333. |