save

abstract fun save(path: String? = null, options: DocumentSaveOptions? = null)

Saves the document to an external file even if it hasn't been changed. Note that this may take a while and should not be called on the main thread. This will not clear the {@link #wasModified()} flag on this document instance, and will not replace the source of this document either (i.e. subsequent calls to {@link #saveIfModified()} will still save the document back to the original file).

Parameters

path

Absolute filepath to the output document file.

options

Save options for the document, may be {@code null} to use default set.