SaveOptions Interface
Reusable file settings; server PDF options additionally accept explicit font bytes and formula-error policy.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
Members
Properties
| Property | Description |
|---|---|
| bom | Include a UTF-8 byte-order mark for applications that require it. Default false. |
| decimalSeparator | Decimal separator for numeric values; defaults to period. |
| delimiter | One non-quote, non-newline delimiter; defaults to comma. |
| documentProperties | The documentProperties value of SaveOptions. |
| escapeFormulas | Prefix formula-like text with an apostrophe for spreadsheet consumers. Default true; false preserves exact text. |
| format | Records use header names as keys; rows retain all selected rows as arrays. Default records. |
| hasHeaderRow | For JSON records and XML, use the first selected row as field names. Default true; false generates Column1, etc. |
| internalWorkbookFormat | The internalWorkbookFormat value of SaveOptions. |
| lineEnding | Record ending; defaults to CRLF. Embedded line breaks remain inside quoted fields. |
| maxCells | Maximum selected rectangular cell count, including blanks. Defaults to 1,000,000. |
| maxFileBytes | Maximum encoded output bytes; defaults to 32 MiB. |
| omitDashboards | Non-native formats omit interactive dashboards. Set true to explicitly export worksheet content only. |
| The pdf value of SaveOptions. | |
| pretty | Indent exported JSON by two spaces. Default false. |
| range | Inclusive A1 rectangle. Defaults to A1 through the last populated cell; formatting alone does not extend it. |
| sheetName | Worksheet name; defaults to the active worksheet. |
| signal | The signal value of SaveOptions. |
| spreadsheetML | The spreadsheetML value of SaveOptions. |
Examples
Configure SaveOptions for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.
import type { SaveOptions } from '@txtextcontrol/tx-sheet-control-server';
const saveSettings: SaveOptions = { pdf: { locale: 'de-DE', timeZone: 'UTC', title: 'Invoice' } };
See Also
openDocumentSpreadsheet: format-specific ODS settings.
fonts: document font sources and substitution policy.
embedUsedFonts: Include resolved font bytes in the exported workbook.