pdf-form-filler — Free PDF Form Filler CLI for AI Agents
pdf-form-filler — Adobe Acrobat for AI Agents: Fill complex PDF forms from a single JSON file. Skip fragile Python scripts and manual edits—automate PDF workflows in one command with 5x fewer tokens. Offline, fast, and free.
Install in one minute — see the install commands below. Source and README: github.com/creatorops-studio/pdf-form-filler.
Fill any AcroForm from JSON
One command, one JSON file: text, checkbox, radio and choice fields. It is JSON to PDF form filling — no GUI, no manual edits — and appearance streams are regenerated so filled values render in every viewer.
# 1. See what a form contains
pdf-form-filler list-fields form.pdf
# 2. Fill it from JSON
pdf-form-filler fill form.pdf --values values.json -o filled.pdf
# 3. Check the layout before you send it to anyone
pdf-form-filler validate form.pdf
values.json is just the field map:
{"full_name": "Alice Example", "email": "[email protected]",
"subscribe": "true", "country": "GB"}
A layout debugger that talks to your agent
validate reports text overflow, fields outside the page, missing appearances, invalid choice values and XFA — as machine-readable JSON the agent can act on, not a screenshot to squint at.
Install in one minute
Install straight from GitHub with a Rust toolchain (cargo) — the crate is not on crates.io yet:
cargo install --git https://github.com/creatorops-studio/pdf-form-filler
Prefer a ready-made binary? Download the Release v0.1.0 binary (1,796,616 B) from github.com/creatorops-studio/pdf-form-filler/releases/tag/v0.1.0. Check it runs: pdf-form-filler --version prints 0.1.0.
Measured numbers, not marketing
Measured 5 December 2026 on Linux x86_64, release build, with pdf-form-filler benchmark. Tokens ≈ characters / 4 (standard approximation, same rule both sides); the pypdf script is the canonical script an agent would write for the same fill task, kept verbatim in the repo so the comparison is reproducible.
| What was measured | Result |
|---|---|
| Token cost to fill one form | 23 tokens (JSON field map) vs 118 tokens (hand-written pypdf script) — 5.1× saving |
| Fill 1 form | 2.2–7.5 ms |
| Load + list fields (5-field form) | 0.8–16.3 ms |
| Flatten 1 form | 0.9–1.4 ms |
| Binary size (release, stripped) | 1,796,616 B (1.71 MiB) — one static binary |
Built for AI agents first
MCP server with three tools (list_fields, fill_form, validate_layout). Add this to your MCP config and the agent gets them — no Python, no browser, no cloud:
{
"mcpServers": {
"pdf-form-filler": {
"command": "pdf-form-filler",
"args": ["mcp"]
}
}
}
Example agent flow: list_fields → write a JSON field map (23 tokens, measured) → fill_form → validate_layout to confirm zero errors.
Built with: Rust, a single static binary, and an MCP server — PDF parsing and form work on lopdf + pdfer_forms.
Free, offline, MIT
Single static binary, no cloud, no account. Free core is 80% of a real form tool: fill text / checkbox / radio / choice fields, list fields, flatten forms, and basic layout validation. Pro (coming later, $10–29/month) adds batch validation, XFA migration, template packs and a Cloud API. Free stays free and stays offline — Pro never takes features away.
What it does not do
- XFA forms: no — XFA was removed from PDF 2.0. XFA-to-AcroForm migration is a planned Pro feature.
- Digital signature fields: no, by design — filling a signature field would forge a signature.
Frequently asked questions
Is pdf-form-filler really free?
Yes — MIT licensed, free core forever. Pro is a separate paid tier for batch/API features.
Does it work offline?
Yes. 100% local; no network calls at all in the free build.
Does it handle XFA forms?
No — XFA was removed from PDF 2.0. XFA-to-AcroForm migration is a planned Pro feature.
Can it fill digital signature fields?
No, by design — filling a signature field would forge a signature.
How do I use it with Claude Code?
Add the MCP server block from the repo README to your MCP config; the agent gets list_fields, fill_form, validate_layout.
How do I install it?
Run cargo install --git https://github.com/creatorops-studio/pdf-form-filler (needs a Rust toolchain), or download the Release v0.1.0 binary (1,796,616 B) from the v0.1.0 release. The crate is not on crates.io yet.
Fill a form in one command.
Free, offline, MIT licensed — get the source on GitHub.