Loads a document from memory into the DocumentViewer. The document must be passed as an Base64 encoded string. The format is recognized automatically.

Introduced: X14.

<Promise<boolean>> TXDocumentViewer.loadDocument(<string> documentData, <string> documentName, signatureSettings = null, documentLoadSettings = null);

Parameters

Parameter Description
documentData The document encoded as a Base64 string. Supported formats are TX, DOC, DOCX, PDF, RTF and HTML.
documentName The document name that is displayed in the status bar.
signatureSettings Specifies the settings for signatures.
documentLoadSettings Additional settings for loading the document.