VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.DocumentViewer Namespace / WebDocumentViewerJS type / exportFile Methods / exportFile(Vintasoft.Imaging.WebExportFileSettingsJS) Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    exportFile(Vintasoft.Imaging.WebExportFileSettingsJS) Method
    In This Topic
    Exports images (with annotations), which are loaded in web image viewer, to a file.
    Syntax
    var instance = new Vintasoft.Imaging.DocumentViewer.WebDocumentViewerJS(settings);
    
    var value; // Type: any
    
    // Parameters
    var exportFileSettings; // Type: WebExportFileSettingsJS
    
    value = instance.exportFile(exportFileSettings);
    
    
    function exportFile(
    exportFileSettings
    An instance of WebExportFileSettingsJS clas that defines the export file settings.
    : WebExportFileSettingsJS
    ) : any;

    Parameters

    exportFileSettings
    An instance of WebExportFileSettingsJS clas that defines the export file settings.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Example

    ThisJavaScriptcodeshowshowtosaveimageswithannotationtoafile:
                      // create the export file settings
                      var exportFileSettings = new Vintasoft.Imaging.WebExportFileSettingsJS();
                      // specify the indexes of images, which must be saved
                      exportFileSettings.set_ImageIndexes([ 0, 2, 0, 1 ]);
                      // specify the name of the file, where images must be saved
                      exportFileSettings.set_FileId("document.pdf");
                      // specify that annotations must be saved with images
                      exportFileSettings.set_SaveAnnotations(true);
               
                      // export images to a file
                      docViewer1.exportFile(exportFileSettings);
    

    Browser Compatibility
    56+
    45+
    11
    See Also