# Run2 PDF Form Filler

> Improved skill for filling XFA/non-standard PDFs using FreeText annotations when field mapping is unavailable.

- Skill: `cxcscmu/run2-pdf-form-filler` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/run2-pdf-form-filler`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/run2-pdf-form-filler/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/run2-pdf-form-filler

---


# PDF Form Filler Skill (Round 2)

This skill addresses XFA/complex PDF form challenges by using `FreeText` annotations for field population.

## Usage
When field-based filling (via `update_page_form_field_values`) fails due to XFA structure or non-standard forms, utilize annotation-based filling.

## Steps
1. Identify fields manually or via `get_fields()`.
2. Map fields to visual page coordinates.
3. Use a script to overlay text using `FreeText` annotations.
4. Execute via the `scripts/fill_pdf_form_with_annotations.py` utility.

## Example
```python
# Create a JSON configuration mapping pages, bounding boxes, and field values.
# Use the annotation script:
# python scripts/fill_pdf_form_with_annotations.py input.pdf fields.json output.pdf
```

