Saves the current document in a certain format and sends the result back asynchronously by calling a given callback function.

Introduced: X18.

<void><StreamType> streamType, <SaveDocumentResultCallback> callback, [<SaveSettings> saveSettings], [<ErrorCallback> errorCallback])


Parameter Description
streamType Specifies one of the numerical StreamType values.
callback A function with one parameter. Is called with an argument object of type SaveDocumentResult containing the document data after the document has been saved successfully.
saveSettings Optional. Specifies additional save settings.
errorCallback Optional. Is called when the operation failed with an error.