Skip to content
Document Authoring DA  API Docs v2.0.0
npmGitHub

SpreadsheetImportFileFormatNEW

SpreadsheetImportFileFormat:

type SpreadsheetImportFileFormat =
| "xlsx"
| "sheetjson";

The formats a spreadsheet can be read from.

sheetjson is listed here as well as on DocAuthSystem.loadSpreadsheet for the same reason docjson appears in ImportFileFormat: import is the permissive front door and accepts the native format too, while load is the one that only ever speaks it.

// Skip detection when you already know what the bytes are
const spreadsheet = await system.importSpreadsheet(blob, { format: 'xlsx' });