fill_form
Fill fields in a local PDF using a field-value map and save the completed form to a new file while leaving the original unchanged.
Instructions
Fill the form fields of a local PDF and write the result to a new file.
values maps a field name from list_form_fields to its new value: a
string for a text field, a check box or a combo box, a list of strings for
a multi-select list box. The input file is never changed; out_path must
be a different path inside an allowed root, and one that does not exist
yet unless overwrite is true. A symbolic link at out_path is
refused either way. The result names the fields that were set and the
names that were unknown; nothing is written when no field was set.
Args: path: The absolute path of the PDF to fill. values: Field name to new value. out_path: The absolute path to write the filled PDF to. overwrite: Replace a file that already exists at out_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| values | Yes | ||
| out_path | Yes | ||
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |