add_form_fields_to_pdf
Add interactive form fields (TextBox or CheckBox) to a PDF, specifying position, size, pages, and initial value. Save the modified PDF to disk.
Instructions
Add an interactive form field (TextBox or CheckBox) to a PDF via PDF4me AddFormField (/api/v2/AddFormField). Provide the PDF path, field name, initial value, position (X/Y in PDF units), Size, pages spec, and formFieldType. Saves the resulting PDF to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| pages | Yes | ||
| field_name | Yes | ||
| output_dir | No | ||
| position_x | Yes | ||
| position_y | Yes | ||
| initial_value | Yes | ||
| pdf_file_path | Yes | ||
| form_field_type | Yes | ||
| output_file_name | No | ||
| request_doc_name | No |