Fill fields
This documentation provides an example of how to use the FileforgeClient to fill forms in a PDF document. This endpoint returns modified version of the PDF you submit with the filled form, according to the data you provide.
Prerequisites
Ensure you have the following:
- An API key for Fileforge as an environment variable: process.env.FILEFORGE_API_KEY
- Node.js and npm installed.
- The Fileforge Client installed.
Guide
Prepare the form data as a list of object as follows
Note: if you don’t know what the field names are, you should use the mark form fields or detect form fields API endpoints to get the field names.
Here are the most common fields and supported types: