OpenDocumentSpreadsheetSaveOptions Interface
Format settings used by openDocumentSpreadsheet in SaveOptions. This interface is a type-only declaration.
Properties
| Property | Description |
|---|---|
| documentProperties | Export-only metadata overrides. |
| preserveOriginal | Retain original ODS content by default; false creates a fresh package. |
| signal | Abort 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 });
}