fill_pdf_form
Fill form fields in a local PDF by providing the file path and a JSON object of field/value pairs, with optional output settings.
Instructions
Fill form fields in a local PDF using the PDF4me FillPdfForm API. Provide the local PDF path and a JSON object of field/value pairs in form_data. Optionally specify output directory and output file name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"form_data": "<form_data>"
},
"name": "fill_pdf_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the template PDF file to fill. | |
| form_data | Yes | Form field values as key/value pairs (for example {"firstname": "John"}). | |
| output_dir | No | ||
| output_file_name | No |