VintaSoft Imaging .NET SDK 15.2: Документация для Веб разработчика
Vintasoft.Imaging.UI Namespace / WebDocumentViewerBaseJS type / exportAndDownloadFile Methods / exportAndDownloadFile(Vintasoft.Imaging.WebExportFileSettingsJS) Property
Syntax Example BrowserCompatibility SeeAlso
В этом разделе
exportAndDownloadFile(Vintasoft.Imaging.WebExportFileSettingsJS) Метод
В этом разделе
Экспортирует изображения (с аннотациями), загруженные в веб-просмотрщик изображений, в файл и загружает его.
Синтаксис
var instance = new Vintasoft.Imaging.UI.WebDocumentViewerBaseJS(settings);

var value; // Type: any

// Parameters
var exportFileSettings; // Type: WebExportFileSettingsJS

value = instance.exportAndDownloadFile(exportFileSettings);

Parameters

exportFileSettings
Экземпляр класса WebExportFileSettingsJS, который определяет настройки файла экспорта.
Пример

ThisJavaScriptcodeshowshowtoexportimageswithannotationstoafileanddownloadthefile:
                  // create the save 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 and download the file
                  docViewer1.exportAndDownloadFile(exportFileSettings);

Совместимость с веб браузерами
9
5
11
5
Смотрите также