downloadDocumentData Method

Summary

Downloads the document data from the cache.

Syntax
TypeScript
JavaScript
downloadDocumentData =function(documentId,uri,includeAnnotations)
staticdownloadDocumentData(documentId:string,uri:string,includeAnnotations:boolean): JQueryPromise<number[]>;

Parameters

documentId

The document ID to download. This can benull.

uri

The URL to the resource to download. This can benull.

includeAnnotations

trueto download the document annotations (if any) as well.

Return Value

APromiseobject that may resolve successfully to an array of bytes.

Remarks

DownloadDocumentDatacan be used to download the data of aLEADDocumentstored in the cache or the output file from a conversion result.

If the value ofdocumentIdis notnull, then the data of the main file of the document will be downloaded. This is the content of the original PDF or DOCX file if the document was uploaded from a PDF file or DOCX file respectively.

If the value ofuriis notnull, then this is assumed to contain a URL to a LEAD cache identifier containing the document.

Requirements
Target Platforms
Leadtools.Document Assembly
188金宝搏的网址客服|Support|Contact Us|英特尔lectual Property Notices
© 1991-2021LEAD Technologies, Inc.All Rights Reserved.