Parsing & Penny-Exact Reconciliation Methodology
1. Coordinate Clustering & Column Gutter Detection
Each text glyph is projected into viewport space via viewport.transform, clustered horizontally within a 4.5pt vertical tolerance, stripped of multi-page repeating headers, and mapped dynamically to detected column X-gutters.
2. Integer-Cents Reconciliation Invariant
Amounts are parsed directly into integer cents without IEEE-754 float math. Consecutive running balances are verified in both ascending and descending order: prevCents + txCents === currCents, alongside summary tie-out opening + credits - debits === closing.