TXTextControl.SaveDocumentResult Object The callback function argument for the saveDocument and the saveSelection functions. Introduced: 23.0. Syntax [JavaScript] { data: , streamType: } Properties Property Description data The Document data. streamType Specifies one of the StreamType values.
example shows how to save the current document and display the received document data in the console. JavaScript TXTextControl.saveDocument(TXTextControl.StreamType.HTMLFormat, function (e) { console.log(e.data); }); Possible console output: [...]…
save Method TXTextControl Object JavaScript API Saves the current document in a certain format and sends the result back asynchronously by calling a given callback function. Introduced: X18. JavaScript TXTextControl.save( streamType, callback, [ saveSettings], [ errorCallback
current selection in a certain format and sends the result back asynchronously by calling a given callback function. Introduced: X13. JavaScript TXTextControl.saveSelection( streamType, callback) TXTextControl.saveSelection( streamType, callback) Parameters Parameter Description…
TXTextControl.SaveDocumentResult.data Property The Document data. Contains base64 encoded binary data in case of binary document formats (PDF or DOCX, for example) and plain text in case of text based document formats (HTML or RTF, for example). Syntax [JavaScript
TXTextControl.SaveDocumentResult.streamType Property Specifies one of the StreamType values. Syntax [JavaScript] SaveDocumentResult.streamType
Javascript: FileDroppedEventArgs.fileSize The size of the file in bytes. Javascript: FileDroppedEventArgs.fileType The MIME type of the file. Javascript: SaveDocumentResult.bytesWritten Specifies the number of bytes written during a save operation. Javascript: SaveDocumentResult.data The…
successfully. Example The following example shows how to save the current document and display the received document data in the console. [JavaScript] TXTextControlWeb.saveDocument(TXTextControl.StreamType.HTMLFormat, function (e) { console.log(e.data); }); Possible console output: [...]
+1 704-544-7445 (United States)
+1 855-533-8398 (United States, toll free)
Or send us an email: