Skip to content

readXlsx

readXlsx(xlsx, options?): ReadResult<FlowDoc>

Defined in: src/excel/xlsx-reader.ts:129

Read a .xlsx and project it to a FlowDoc in one step: readXlsxToSheetDoc then projectSheetDoc.

Parsing itself is lossless — SpreadsheetML maps cleanly onto the sheet IR. The losses come from the projection: the print model’s defence-in-depth caps (grid size, per-sheet text budget, sparkline range) clip pathological sheets, and each clip is reported rather than applied in silence.

Uint8Array

The .xlsx (OPC ZIP) bytes.

ProjectSheetOptions = {}

Projection knobs (the W9 reference date).

ReadResult<FlowDoc>

The flow document plus whatever the projection had to clip.