Skip to main content

Function: readWorkbook()

function readWorkbook(input): Promise<XlsformWorkbook>;

Defined in: workbook.ts:348

Reads any accepted input into a normalised XlsformWorkbook.

Headers are folded per docs/20 §2.2, fully-empty rows are dropped, and rowNumbers records where each surviving row really lives in the spreadsheet. A plain XlsformWorkbook is normalised in place and never touches xlsx.

Parameters

ParameterType
input| ArrayBuffer | Uint8Array | Blob | XlsformWorkbook

Returns

Promise<XlsformWorkbook>

Throws

RasdError RASD_XLSFORM_IMPORT when bytes are given and the optional xlsx peer is missing or the file is unreadable / oversized.