Skip to content

Release v2026.05.7

Choose a tag to compare

@github-actions github-actions released this 21 May 06:56
· 14 commits to main since this release
Immutable release. Only release title and notes can be modified.
Optimize table cell bounds and refine underscore width metrics

Enable precise empty cell scanning inside Passport, Visa, and Taxation table blocks and resolve over-extended text box widths.

Core Refinements:
- Lowered Bounding Box Limits: Updated the rectangle (`re`) parser constraints in `pkg/pdfprocessor/processor.go` to lower the minimum height threshold from 50 to 12 points (`hAbs > 12`). This successfully captures standard table cells (typically 15-30 points high).
- Unified Security Filtering: Populated table cells containing pre-existing text are automatically pruned by our text-intersection filter, ensuring only truly empty input cells are mapped as interactive form widgets. Checkbox squares (width < 20) remain filtered out due to the width threshold (`wAbs > 30`).
- Refined Underscore Metrics: Updated `estimateTextWidth` to map the underscore `_` glyph to an explicit width factor of `0.50` (exact Helvetica font specification) instead of the general `0.53` default, resolving over-extended text box widths on long underscore chains.