saveAsync

abstract suspend fun saveAsync(path: String)

Saves the document to an external file even if it hasn't been changed. This will not clear the wasModified flag on this document instance, and will not replace the source of this document either (i.e. subsequent calls to saveIfModified will still save the document back to the original file).

Parameters

path

Absolute filepath to the output document file.


abstract suspend fun saveAsync(path: String, saveOptions: DocumentSaveOptions)

Saves the document to an external file even if it hasn't been changed. This will not clear the wasModified flag on this document instance, and will not replace the source of this document either (i.e. subsequent calls to saveIfModified will still save the document back to the original file).

Parameters

path

Absolute filepath to the output document file.

saveOptions

Save options for the document.