pdf_fill_form
Fill PDF form fields including text, checkboxes, dropdowns, and radio buttons. Supports non-Latin characters with custom fonts and can flatten forms to make them non-editable.
Instructions
Fill form fields in a PDF. Supports text, checkbox, dropdown, and radio fields. Provide fontPath for non-Latin text (Arabic, CJK, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the PDF file with form fields | |
| fields | Yes | Object mapping field names to values. Strings for text/dropdown/radio, booleans for checkboxes. | |
| outputPath | Yes | Absolute path for the filled output PDF | |
| flatten | No | Flatten form fields after filling (makes them non-editable). Defaults to false. | |
| fontPath | No | Absolute path to a .ttf/.otf font file for non-Latin character support. |