downloadDocumentData Method

Summary

Downloads the document data from the cache.

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

Parameters

documentId

The document ID to download. This can be null.

uri

The URL to the resource to download. This can be null.

includeAnnotations

true to download the document annotations (if any) as well.

Return Value

A Promise object that may resolve successfully to an array of bytes.

Remarks

DownloadDocumentData can be used to download the data of a LEADDocument stored in the cache or the output file from a conversion result.

If the value of documentId is not null, 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 of uri is not null, then this is assumed to contain a URL to a LEAD cache identifier containing the document.

Requirements

Target Platforms

Help Version 23.0.2024.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.