Backend service that fills AcroForm PDFs by mapping structured user data to form fields using deterministic rules and optional AI-assisted semantic inference.
git clone https://github.com/lindseystead/ai-pdf-autofiller.gitPDF Autofiller is a FastAPI-based backend service designed to automatically fill AcroForm PDFs from structured user data. It prioritizes deterministic behavior through key normalization, stable aliases, and value coercion before optionally applying semantic inference for field mapping. The service reads PDF metadata and form fields, maps user data using rule-based matching, and validates that all required fields are resolved before returning the filled PDF. It provides built-in features like file upload size limits, page count restrictions, per-client rate limiting, and optional API authentication. Organizations handling document automation, form processing workflows, or integration with document management systems benefit from its auditable, testable approach to PDF form completion.
Install dependencies via `poetry install`, then run the API locally with `make run-api`. Submit a POST request to `/fill` with a PDF file and JSON user data. Configure optional features like semantic inference and authentication via environment variables (`MODEL_PROVIDER_API_KEY`, `API_AUTH_TOKEN`, etc.).
Automating insurance claim form filling from customer data
Batch processing employment application forms with applicant information
Populating tax or legal document templates from structured records
Integration with document management systems for form completion workflows
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/lindseystead/ai-pdf-autofillerCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to fill out a PDF form automatically. The form is a [FORM_TYPE] from [COMPANY]. The fields include [FIELD_1], [FIELD_2], and [FIELD_3]. I have the data in this format: [DATA_FORMAT]. Can you help me create an AI-assisted mapping to fill this form accurately?
# PDF Form Filling Solution
## Form Details
- **Form Type**: W-9 Tax Form
- **Company**: Acme Corporation
- **Fields to Fill**: Name, Address, Taxpayer Identification Number, Signature
## Data Provided
```json
{
"name": "John Doe",
"address": "123 Main St, Anytown, USA",
"tax_id": "123-45-6789",
"signature": "John Doe"
}
```
## AI-Assisted Mapping
1. **Name**: Map to the 'Name' field in the PDF form.
2. **Address**: Map to the 'Address' field in the PDF form.
3. **Taxpayer Identification Number**: Map to the 'Taxpayer ID Number' field in the PDF form.
4. **Signature**: Map to the 'Signature' field in the PDF form.
## Implementation Steps
1. Use a PDF form filling tool like Adobe Acrobat or an open-source library like PyPDF2.
2. Implement the mapping logic to fill the form fields with the provided data.
3. Verify the filled form for accuracy.
Automate your browser workflows effortlessly
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan