OpenDocumentSpreadsheetSaveOptions.documentProperties Property
Export-only metadata overrides.
Syntax
documentProperties?: DocumentProperties;
Example
The application supplies control and, for loading, inputBytes.
import { StreamType, type ServerSheetControl, type OpenDocumentSpreadsheetSaveOptions } from '@txtextcontrol/tx-sheet-control-server';
async function saveInvoice(editor: ServerSheetControl, inputBytes: Uint8Array) {
const options: OpenDocumentSpreadsheetSaveOptions = { preserveOriginal: true };
return editor.save(StreamType.OpenDocumentSpreadsheet, { openDocumentSpreadsheet: options });
}