Skip to content
Document Authoring DA  API Docs v1.22.2
npmGitHub

SpreadsheetImportFileFormat

SpreadsheetImportFileFormat:

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

The formats a spreadsheet can be read from.

Experimental: the spreadsheet API may change or be removed in any release, including minor and patch releases.

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' });