Repository navigation
Release v2026.05.6
·
15 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Add text-intersection box filtering to prune false-positives Resolve visual form field overlaps on populated tables (e.g. Passport Details grid) and legal disclaimers (e.g. FATCA paragraph boxes). Core Fixes: - Bounding Box Tracking: Updated `extractBlanksFromPage` in `pkg/pdfprocessor/processor.go` to capture the coordinates of all non-empty, non-underscore text strings (`TextBox` structures) rendered via `Tj` and `TJ` operators. - Text-Intersection Filter: Implemented an Axis-Aligned Bounding Box (AABB) collision checker at the end of the page scan. Discards any detected rectangles (`IsRectangle == true` and height > 50) that overlap with pre-existing text coordinates. This ensures legal text blocks and table cells remain perfectly legible while preserving actual blank comment boxes. Testing & Validation: - Refactored `samples/generate_test_pdfs.go` to add `createForm11Disclaimers`, generating a new mock document `test_form_11.pdf` containing a populated details table, a paragraph disclaimer, and a blank comments area. - Updated `/pkg/pdfprocessor/processor_test.go` loop count to 11 to automate testing across this new template. Verified that all 11 forms compile, scan, and pass structural PDF validation checks cleanly.