DocuVieware Reference Guide
LoadFromUriEx
Reference Guides > JavaScript API > Actions > Document > LoadFromUriEx
 LoadFromUriEx

This asynchronous function allows you to load a document into the DocuVieware™ viewer from remote URI address (note that the document address has to be publicly available) and specify a file name.

This is useful for loading document formats that does not contain any header and therefore needs to be recognized from their extension (for instance WBMP or FAXG3 files).

LoadFromUriEx: function (docuViewareID, uri, fileName, success, error)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want to load the document in.
uri
The document URI you want to load from.
fileName
The document filename with its extension.
success
A function that will be executed upon success.
error
A function that will be executed upon error.

Return Value

1 if error, 0 if success.