Long purchase orders and GRNs are extracted in page chunks
A PO or GRN PDF over ten pages is split into three-page chunks, extracted in parallel, and merged in page order so no line-item row is lost.
A single model call could not return a forty-page line-item table intact; it stopped
partway and the caller received the first pages’ rows. PO and GRN PDFs longer than ten
pages, submitted with requireLineItems: true, are now split into three-page chunks that
are extracted concurrently and merged strictly in page order. Totals from trailing
pages are folded into summary_data, and the persisted extractionStats records the
per-chunk timing, tokens, and cost.