CacheInfo Interface

Summary

Information and properties of a document in the cache.

Syntax
TypeScript
interface lt.Document.CacheInfo() 
Remarks

CacheInfo is returned by DocumentFactory.checkCacheInfo to quickly obtain information on a document in the cache without loading it. This includes whether the document is in the cache, its name and mime type, the number of pages, and if it was loaded by the user.

CacheInfo contains the following members:

Member Description
isVirtual Indicates whether the document is virtual.
isLoaded Indicates whether the document was loaded at least once.
hasAnnotations Indicates whether the document has any annotations.
name Document name
mimeType MIME type of the document
isMimeTypeAccepted Status of checking the document MIME type.
pageCount Number of pages in this document.
Example

For an example, refer to DocumentFactory.checkCacheInfo.

Requirements
Target Platforms
See Also

Reference

lt.Document Namespace

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

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