DocumentFactory Class

Provide supports to load and create Document objects as well as managing the global cache.

Syntax

C#

VB

Java

C++

publicstaticclass DocumentFactory

PublicNotInheritableClass DocumentFactory

publicref class DocumentFactory sealedabstract

publicfinalclass DocumentFactory

Remarks

The main class used for the LEADTOOLS Documents class library is Document. This class abstracts the internal implementation to
provide unified properties and methods to access the internal document. Users can create a new document or load existing documents from disk file
or a URL.

Documents cannot be created directly, instead, use the static DocumentFactory methods to obtain a Document instance
as follows:

The global LEADTOOLS ObjectCache object responsible for managing cache items and
expiration policies. The cache can be stored in this value (if the system requires the use of a single global cache) or a new instance is passed directly to the various
uploading, loading and saving methods to use distinct or shared caches with each document.