Fill AcroForm PDFs from JSON. Common field names match by alias. The model stays off unless an API key is set. MIT licensed.
No install, no credit card. Codespaces opens the playground at /playground automatically. Local: docker compose up --build → http://localhost:8000/playground.
docker compose up --build
# playground + /inspect + sample PDF
docker run -p 8000:8000 \
-e API_AUTH_ENABLED=false \
ghcr.io/lindseystead/ai-pdf-autofiller:latest
from pdf_autofiller import fill
fill("form.pdf", {"firstname": "Jane"}, "filled.pdf")
curl -X POST localhost:8000/inspect \
-F pdf_file=@form.pdf
curl -X POST localhost:8000/fill \
-F pdf_file=@form.pdf \
-F 'user_data={"firstname":"Jane"}' \
-o filled.pdf