TX Sheet Control

OpenDocumentSpreadsheetSaveOptions Interface

Interface

Format settings used by openDocumentSpreadsheet in SaveOptions. This interface is a type-only declaration.

Properties

PropertyDescription
documentPropertiesExport-only metadata overrides.
preserveOriginalRetain original ODS content by default; false creates a fresh package.
signalAbort the export before it completes.

Example

import { StreamType, type Spreadsheet, type OpenDocumentSpreadsheetSaveOptions } from '@txtextcontrol/tx-sheet-control';

async function saveInvoice(editor: Spreadsheet, inputBytes: Uint8Array) {
    const options: OpenDocumentSpreadsheetSaveOptions = { preserveOriginal: true };
    return editor.save(StreamType.OpenDocumentSpreadsheet, { openDocumentSpreadsheet: options });
}