How to use the PDF form filler tool
- Choose the form under PDF file and set Operation to List fields.
- Select Process form. The Result box lists every field name, with the allowed options in parentheses for dropdowns, lists and radio groups.
- Write a JSON object in Field values as JSON that maps field names to values, for example {"Name":"Alex Rivera","Accepted":true}.
- Set Operation to Fill fields to keep the form editable, or to Fill and flatten to turn the values into fixed page content.
- Select Process form again, then select Download to save filled.pdf.
How AcroForm fields are filled
AcroForm is the interactive form model of the PDF specification, ISO 32000. Every field has a full name, a type and a value, and one or more widgets that draw it on a page. The tool uses pdf-lib to look up each key of your JSON object by field name, set the value and regenerate the field appearance so that viewers display it.
The JSON type has to match the field type. Fields you leave out of the object keep whatever value they already had.
- Text field: a JSON string such as "94105". Numbers must be written in quotes.
- Checkbox: true to check it, false to clear it.
- Dropdown or option list: a string, or an array of strings to select several entries.
- Radio group: a string equal to one of the options that List fields printed.
Worked example: list, then fill
A one-page test form with a text box, a checkbox, a dropdown and a radio group produced the listing below. The JSON object under it filled all four fields in one run.
List fields output:
Name
Accepted
Country (United States, Canada, Mexico)
Plan (Monthly, Yearly)
Field values as JSON:
{"Name":"Alex Rivera","Accepted":true,"Country":"Canada","Plan":"Yearly"}
Result: 1 PDF page(s) ready.Fill fields versus Fill and flatten
Fill fields writes the values and leaves the form interactive. The recipient can still change every answer.
Fill and flatten draws each field onto its page as ordinary content and then removes the form. The test form above had no fields left after flattening. Choose it for final copies that should look the same in every viewer and should not be edited through the form.
PDF form filler error messages and causes
The form filler stops at the first problem and reports it in the status line.
- No AcroForm fields were found: the PDF is a flat document or a scan. XFA form data is not supported and is ignored.
- Unknown field: name. Keys are case sensitive and must match the full listed name, including dotted names such as Address.Zip.
- Unsupported value for field: Name. The JSON type does not fit, for example a number for a text field or a string for a checkbox. Buttons and signature fields cannot be set.
- Enter a JSON object keyed by field name: the input parsed as an array or null. Invalid JSON shows the parser's own message, such as Unexpected end of JSON input for an empty box.
- WinAnsi cannot encode: the value contains characters outside the Windows-1252 set, which the standard Helvetica font used for field appearances cannot draw.
Frequently asked questions
How do I find the field names in a PDF form?
Run the tool with Operation set to List fields. It prints one name per line. Names often differ from the labels you see on the page, so copy them from this list into your JSON keys.
Can I fill only some of the fields?
Yes. Only the keys present in your JSON object are written. Every other field keeps its current value.
Can this tool fill XFA forms?
No. XFA is a separate XML-based form technology found in some older government and enterprise PDFs. The underlying library discards XFA data and works only with AcroForm fields, if the file has any.
Can I enter Chinese, Arabic or Cyrillic text?
No. Field text is drawn with the standard Helvetica font, which covers Latin characters in the Windows-1252 range. Other scripts stop the run with a message that WinAnsi cannot encode the character.
Is the form data I enter sent to a server?
No. The PDF and the JSON are processed by pdf-lib inside your browser tab. The filled document is generated locally and saved through a normal browser download.