OpenDocumentSpreadsheetLoadOptions.inflateRaw Property
Optional platform raw-DEFLATE callback. Return the expanded bytes; archive limits and expected-size checks still apply.
Syntax
inflateRaw?: (data: Uint8Array, expectedSize: number) => Promise<Uint8Array>;
Example
The application supplies a raw-DEFLATE implementation as inflate and ODS bytes as inputBytes.
import { StreamType, type Spreadsheet, type OpenDocumentSpreadsheetLoadOptions } from '@txtextcontrol/tx-sheet-control';
async function loadInvoice(editor: Spreadsheet, inputBytes: Uint8Array) {
const options: OpenDocumentSpreadsheetLoadOptions = { maxEditableCells: 100000 };
return editor.load(inputBytes, StreamType.OpenDocumentSpreadsheet, { openDocumentSpreadsheet: options });
}