SaveOptions.openDocumentSpreadsheet Property
Format-specific ODS save settings. See OpenDocumentSpreadsheetSaveOptions.
Syntax
openDocumentSpreadsheet?: OpenDocumentSpreadsheetSaveOptions;
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 });
}