📝 Description
FireForm currently fills text-based PDF fields correctly but provides no support for checkbox or radio button field types. These fields are left blank in the output PDF regardless of what the LLM extracts from the transcript.
This is a gap in the core PDF filling pipeline — the extraction layer already works correctly, making this a targeted and isolated fix in src/filler.py.
💡 Rationale
Emergency response forms commonly include checkbox and radio button fields — for example:
- "Was medical assistance required?" → checkbox
- "Incident type: Fire / Medical / Hazmat" → radio button
Leaving these blank produces incomplete, unusable output PDFs that fail real-world filing requirements. Fixing this is essential for FireForm to serve its stated purpose of automating form completion for firefighters and emergency responders.
🛠️ Proposed Solution
In src/filler.py, add field-type detection and value mapping for /Btn field types:
# Detect field type
field_type = field.get("/FT")
if field_type == "/Btn":
# Map extracted string value to PDF boolean value
val = str(value).strip().lower()
if val in ("yes", "true", "1", "checked"):
field.update(pdfrw.PdfDict(V=pdfrw.PdfName("Yes"), AS=pdfrw.PdfName("Yes")))
else:
field.update(pdfrw.PdfDict(V=pdfrw.PdfName("Off"), AS=pdfrw.PdfName("Off")))
✅ Acceptance Criteria
📌 Additional Context
- The LLM extraction layer (
src/llm.py) already extracts boolean and choice values correctly — this issue is purely a filler.py mapping problem
pdfrw supports /Btn field type natively — no new dependencies required
- Related to the broader goal of full PDF field type coverage
📝 Description
FireForm currently fills text-based PDF fields correctly but provides no support for checkbox or radio button field types. These fields are left blank in the output PDF regardless of what the LLM extracts from the transcript.
This is a gap in the core PDF filling pipeline — the extraction layer already works correctly, making this a targeted and isolated fix in
src/filler.py.💡 Rationale
Emergency response forms commonly include checkbox and radio button fields — for example:
Leaving these blank produces incomplete, unusable output PDFs that fail real-world filing requirements. Fixing this is essential for FireForm to serve its stated purpose of automating form completion for firefighters and emergency responders.
🛠️ Proposed Solution
In
src/filler.py, add field-type detection and value mapping for/Btnfield types:✅ Acceptance Criteria
/Yesor/Offbased on transcript content/Yes) and checkbox (/Off) cases📌 Additional Context
src/llm.py) already extracts boolean and choice values correctly — this issue is purely afiller.pymapping problempdfrwsupports/Btnfield type natively — no new dependencies required