Skip to content

API reference / Common / SaveOptions

Interface: SaveOptions ​

Options for UDocBase.saveToBytes and UDocBase.requestRemoteCopy. Every field is optional; each says its default.

Properties ​

PropertyDescription
format?
FileFormat
The format to save as, one of the open doc type's own: a PDF saves to "pdf", a presentation to "pptx" or another of PowerPoint's. Default UDocBase.sourceFormat, the document saved back as the format it was opened from.
strategy?
SaveStrategy
How much of the file the document was opened from, the original, the saved bytes keep: a "delta" or "incremental" save writes over it, which a document opened from a package or with UDocBase.openRemote doesn't hold, and "rewrite" writes the document afresh. Default the one keeping the most of it that the format saves by ("incremental" for a PDF, "rewrite" for a CSV, a TSV, a PSV, a text file, a Markdown file, an HTML file or an image, else "delta"), and "rewrite" with nothing to keep: as another format than UDocBase.sourceFormat, or with no original held.
delimiter?
string
The character a CSV's fields are split by, ";", `"