Smart Fill PDF Form API by any data types (Mapping and Dynamic)
In this tutorial, we’ll guide you through how to fill a PDF form using both Mapping Data and Dynamic Data together.
This method is the most flexible and works well in real-world scenarios—especially when your data comes from multiple sources such as: Intake forms, Passport or ID images, Financial documents, Your internal database, etc.
Let’s walk through how to combine these inputs and generate a fully filled form with TakeForm.
Step 1: Get an API Key API Key
Before using any of the steps below, make sure to:
Register a new account on the TakeForm platform.
Receive $5 in free credits instantly—enough to start testing right away.
Generate your API key to begin integrating with our API.
Once you have your API key, you're ready to move on to the next section.
Step 2: Upload the form
Now, you need a form to work with. You have two options:
Choose an existing form from your Form Library
Upload your own form by following the instructions in the section below (Video guide included)
Step 3: Use Form Filling API to fill form in step 2
Full Code example: https://github.com/cptrodgers/takeform-examples/blob/master/fill-form-example/smart-filling-method.py
TakeForm enables you to fill a form using both Mapping Data and Dynamic Data. First, it fills the known fields using structured Mapping Data (via a schema), then it uses Dynamic Data (such as text, images, or documents) to fill the remaining fields. You can send both types of data in a single request, and TakeForm will handle the process seamlessly.
Read more about TakeForm Filling Method here TakeForm Community
Step 4: Retrieve the filled form.
That's all, now you can download the filled pdf.
Last updated