pdf_form_fill
Fill PDF form fields by name, supporting text, checkboxes, dropdowns, and radio groups. Read field names first, then set values and optionally flatten the form.
Instructions
Fill form fields in a PDF by name. Supports text fields, checkboxes ("true"/"false"), dropdowns, option lists, and radio groups. Use pdf_form_read first to discover field names and types. Optionally flatten the form to make it non-editable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Object mapping field names to values. For checkboxes: "true" or "false". For dropdowns/radio: the option value string. | |
| flatten | No | If true, flattens the form making fields non-editable (default: false) | |
| filePath | Yes | Path to the PDF file with form fields | |
| password | No | Password if the PDF is encrypted | |
| outputPath | Yes | Path where the filled PDF will be saved |