Leadtools.Documents.UI Namespace > DocumentViewer Object : PrepareToSave Method |
function Leadtools.Documents.UI.DocumentViewer.prepareToSave()
Type | Description |
---|---|
jQueryApi.IDeferred | Returns a jQuery Deferred object that must be used to detect the status of the command. Refer to jQuery documentation for more information on Deferred. The return Deferred object does not contain parameters. The done function must be used to continue with saving the document. |
This method must be called before the Document currently in the viewer is saved or passed to a document services that uses the LEADTOOLS Document Converters for conversion to a new format.
The method will update all the data that might have been changed by the user including the text or annotations containers.