Canonical Playbook & Live Converter: Originally published at nandai.org/blog/bank-statement-sec-10k-pdf-to-excel-xy-reconciliation. Extract statement tables privately in browser memory at nandai.org/pdf-to-excel/bank-statement-pdf-to-excel.

Copy-pasting multi-page checking statements or SEC 10-K cash-flow schedules into Excel fails for predictable geometric reasons: each transaction usually carries either a Debit or a Credit, so plain text splitting shifts Balance leftward into the empty column while turning wrapped merchant memos into orphaned rows and leaving (1,240.50) as non-summable text.

Uploading confidential corporate bank history or tax filings to third-party web converters introduces unnecessary custody risk. Here is how browser-local 2D coordinate clustering solves the problem with zero server uploads.

1. Y-Band Baseline Sweep & Right-Aligned x_max Column Locking

In PDF content streams, Date and Description anchors align on left edges (x_min), while numeric currency columns (Debit, Credit, Amount, Balance) align strictly on right edges (x_max):

1. Y-Band Grouping: cluster text spans within +-2pt baseline tolerance into logical lines 2. Column Histogram: lock currency column centers j using right-edge x_max density peaks 3. Cell Assignment: ColIndex(span) = argmin_j |span.x_max - Anchor_j.x_max| 4. Memo Stitching: lines lacking a valid date prefix or numeric right-column span append to prev row's Description 

Because each currency token resolves against fixed horizontal page coordinates rather than whitespace delimiters, empty Debit cells remain genuinely blank instead of shifting Credit or Balance left.

2. Sign Normalization & Running-Balance Tie-Out Invariant

SEC 10-K filings and commercial bank ledgers encode outflows as accounting parentheses (1,240.50), trailing minus signs 1,240.50-, or DR/CR suffixes. Before emitting typed .XLSX cells, every numeric token normalizes to a signed IEEE-754 float and is audited against the running balance invariant:

Reconcile_k: |B_{k-1} + Credit_k - Debit_k - B_k| <= 0.01 

Any multi-page boundary slip or OCR digit mismatch flags the exact row immediately—before you run SUM() or build quarterly pivot tables.

Failure Case Manual Copy-Paste Destiny 2D Coordinate Engine
Sparse Debit / Credit Columns Balance shifts left into empty cell Locked by right-edge x_max anchors
Accounting Parentheses (450.00) Text strings fail Excel SUM() Normalized signed numeric .XLSX cells
Wrapped 2–3 Line Memos Spawns broken blank rows Stitched upward to parent transaction
Ledger Data Custody Sent to external converter servers 100% local browser-RAM execution

3. Complete Local Financial & Document Workflow + Pro Upgrades

Pair statement extraction with zero-upload document tooling across nandai.org: