Skip to content

API reference / @docmentis/udoc-node / SaveOptions

Interface: SaveOptions ​

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

Properties ​

PropertyDescription
format?
FileFormat
The format to save as, one of the doc type's own: a PDF saves to "pdf", a presentation to "pptx" or another of PowerPoint's. Default UDocSession.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 session opened from a package or with UDocNode.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 UDocSession.sourceFormat, or with no original held.
delimiter?
string
The character a CSV's fields are split by, ";", `"