downloadFile(string) Method
In This Topic
Downloads a file from server.
Syntax
var instance = new Vintasoft.Imaging.UI.WebDocumentViewerBaseJS(settings);
var value; // Type: any
// Parameters
var fileId; // Type: string
value = instance.downloadFile(fileId);
function downloadFile(
: string
) : any;
Parameters
- fileId
- A string that represents the identifier of file that should be downloaded.
Exceptions
Exception | Description |
| Thrown if argument has wrong type. |
Example
ThisJavaScriptcodeshowshowtodownloadaspecifiedfilefromserver:
// download a file from server
docViewer1.downloadFile("pdfDocumentWithPassword.pdf");
Browser Compatibility
See Also