Loads a document from a Blob
object.
static loadFromFile(
blob: Blob,
options: LoadDocumentOptions
): AbortableJqueryPromise;
blob
The JavaScript Blob
object containing the document file data.
options
The LoadDocumentOptions object used when creating the LEADDocument.
A Promise object that may resolve successfully to a LEADDocument object, or fail if the LEADDocument cannot be created from the uri.
loadFromFile first uploads the data to the cache and then calls loadFromUri. This is performed using the existing beginUploadDocument/uploaddocumentblob, uploadDocument, and endUpload support.
Upon success, the result is a LEADDocument object from any supported image or document file format stored in a disk file or remote URL. The returned object can then be used to retrieve any page as image or SVG, to obtain the text using SVG or OCR, to use with annotations, or to use the document structure such as links and bookmarks.
Refer to Loading Using LEADTOOLS Document Library for detailed information on how to use this method and the various options used.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document