VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.UI Namespace / WebDocumentViewerBaseJS type / downloadFile Methods / downloadFile(string) Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    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(
    fileId
    A string that represents the identifier of file that should be downloaded.
    : string
    ) : any;

    Parameters

    fileId
    A string that represents the identifier of file that should be downloaded.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Example

    ThisJavaScriptcodeshowshowtodownloadaspecifiedfilefromserver:
                      // download a file from server
                      docViewer1.downloadFile("pdfDocumentWithPassword.pdf");
    

    Browser Compatibility
    56+
    45+
    11
    See Also