Free plan

Bulk fill forms

Fill one PDF form many times from a spreadsheet
POST
/v1/pdfs/forms-bulk

About this tool

This tool fills the same fillable PDF form once for every row of a spreadsheet. The first row of the sheet holds the column names, which are matched to the form fields by name or by a mapping you write. You get a ZIP with one PDF per row, or one merged PDF. The filled fields can be locked so they cannot be edited.
For example, you make 100 certificates, each with a different name from your list.

How to use it

  1. Choose this tool.
  2. Add your fillable PDF form.
  3. Add your spreadsheet (CSV, Excel or similar) with one row per form.
  4. Choose a ZIP or one merged PDF, and which column names the files.
  5. Press Generate, then download the result.

What you get back

You get a ZIP with one filled PDF for every row, or one merged PDF. A note lists any columns that matched no field.
GOOD TO KNOW
Only AcroForm fields can be filled (XFA forms cannot); only Latin-1 text can be written into fields. Counts as one PDF operation.
TEST IT LIVE

Try Bulk fill forms in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/forms-bulk
Tool ID
pdfs.forms-bulk
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/forms-bulk" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'data_file=@document.pdf' \
  -F 'mapping={"Full name":"applicant_name"}' \
  -F 'output=zip' \
  -F 'name_column=id'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.formsBulk({
    "file": 'document.pdf',
    "data_file": 'document.pdf',
    "mapping": "{\"Full name\":\"applicant_name\"}",
    "output": "zip",
    "name_column": "id"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->formsBulk([
    'file' => 'document.pdf',
    'data_file' => 'document.pdf',
    'mapping' => '{"Full name":"applicant_name"}',
    'output' => 'zip',
    'name_column' => 'id',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Fill a fillable PDF form once for every row of a sheet (CSV, TSV, Excel or JSON) and get a ZIP of filled PDFs or one merged PDF. Columns are matched to form fields by name or by a mapping.

Bulk fill forms accepts PDF. Send one file per request.

Bulk fill forms is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/pdfs/forms-bulk with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.