TX Sheet Control

XlsxImportOptions.inflateRaw Property

Property

Optional platform DEFLATE implementation for runtimes without DecompressionStream.

Owner: XlsxImportOptions. Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.

Syntax

inflateRaw?: ((data: Uint8Array, expectedSize: number) => Promise<Uint8Array>) | undefined

Read through the owning object: owner.inflateRaw. Follow the declared mutability and owning object lifetime.

Examples

Configure XlsxImportOptions for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.

import type { LoadOptions } from '@txtextcontrol/tx-sheet-control-server';

function configureXlsxImportOptions(fontBytes: Uint8Array<ArrayBufferLike>) {
    const xlsxImportSettings: NonNullable<LoadOptions['spreadsheetML']> = {
        signal: new AbortController().signal,
        inflateRaw: (data, expectedSize) => Promise.resolve(fontBytes),
    };

    console.log(xlsxImportSettings['inflateRaw']);
    return xlsxImportSettings;
}

Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

See Also