Guide

Filling a PDF form in bulk: not a mail merge

Updated

Filling a PDF form in bulk is not a mail merge. Use a tool that fills the form's own fields.

Need a form filled in bulk?

2 minutes

Want somebody to build the pipeline?

Tell us the volume and what has to come out the other end. Up to three document and data extraction software suppliers will contact you directly.

Next: where to reach you.

  • Free, no obligation
  • We never ask you to upload a document here
  • No marketing lists, ever
  • Free to use
  • No account needed
  • Steps from each maker's own guides
  • Suppliers only if you ask
  • Your details go to up to three document software suppliers, and no one else.
  • No spam, ever. Privacy notice

This distinction sounds pedantic until somebody spends a day building a merge template to reproduce a form that already exists and must not be redesigned.

Question 1

What do you need out of it?

This is the decision that separates a five minute job from a scripting project, and it is worth being precise about before you start.

The difference

A mail merge generates a document. The layout is yours, the content comes from data, and the output is whatever your template says.

Filling a form takes a PDF that already exists, with named fields in it, and writes values into those fields. The layout is fixed and not yours to change, which is usually the point: official forms have to look the way they look.

Fields or no fields

If the PDF has real form fields, the work is mapping your data to the field names, and every PDF library can write them.

If it is a flat PDF with lines printed on it, there are no fields to fill. Either add form fields first, a one-off piece of work on the source document, or overlay text at fixed coordinates. That works until the issuing body reissues the form and moves everything by four millimetres.

Field names are the work

Look at them before writing anything. They are frequently strings assigned by whatever tool built the form: topmostSubform[0].Page1[0].f1_07[0] and similar.

Mapping your data to those names is most of the job. Do it once into a named configuration rather than scattering the strings through code.

Flatten or leave editable

A filled form that still has live fields can be altered by anybody who opens it. Flattening converts the values to page content and removes that.

Which you want depends on whether the document is a record or a draft. Decide explicitly rather than accepting your library's default.

Sources

This site's own dataset, every figure quoted from its source and dated:

  • The Merge to PDF Tool Index carries 31 published figures read from 27 sources' own pages; the 29 published figures given without a breakdown run from 8.99 to 199 USD, read November 11, 2026.
  1. Microsoft, use mail merge for bulk email, letters, labels and envelopes
  2. Microsoft, mail merge using an Excel spreadsheet
  3. Google, Apps Script guide to Google Docs
  4. Section508.gov, creating accessible PDFs
  5. Section508.gov, laws and policies

Find the route before you open Word

What has to come out, and what you are working with. Two answers and the method is decided.