Function: computeReadingOrder()
ts
function computeReadingOrder(rects, tolerance?): Rect[];Defined in: src/helpers/utils.ts:141
Sort rectangles into a single-page reading order: top-to-bottom by stripe, then left-to-right within each stripe. Mirrors pymupdf4llm.helpers.utils.compute_reading_order.
Parameters
rects
Rect[]
tolerance?
number = 0
Returns
Rect[]