←Select platform
In This Topic ▼

DocumentFactory Class Members

Summary

The following tables list the members exposed by DocumentFactory.

Public Methods

Name Description
Public Method AbortUploadDocument Abort uploading a document and delete all the stored data.
Public Method BeginUpload Starts uploading a document to the cache.
Public Method CloneDocument Clones (creates a copy) of an existing document in the cache.
Public Method Create Creates a new empty document.
Public Method DeleteFromCache Deletes a document from the global cache.
Public Method DownloadAnnotations Downloads the annotations of the specified document URI into a stream.
Public Method DownloadDocument Downloads the data of the specified document URI into a stream.
Public Method EndUpload Finish uploading a document to the cache.
Public Method GetDocumentCacheInfo Retrieves information for a document in the cache using its URI.
Public Method GetLeadCacheData Helper method to get the data part from a LEAD cache URI.
Public Method IsLeadCacheScheme Helper method to determine whether a string value contains a valid LEAD cache URI.
Public Method IsUploadDocumentUri Indicates whether the URL points to a special LEAD cache scheme.
Public Method LoadFromCache Loads a previously saved document from the global cache.
Public Method LoadFromFile Loads a document from existing data stored in a disk file.
Public Method LoadFromStream Loads a document from existing data stored in a stream.
Public Method LoadFromUri Loads a document from existing data stored in a remote URL.
Public Method LoadFromUriAsync Loads a document asynchronously from existing data stored in a remote URL.
Public Method MakeLeadCacheUri Constructs a LEAD cache URI from a document ID.
Public Method NewCacheId Generates a new document unique ID.
Public Method UploadAnnotations Uploads a chunk of external annotations data to the specified document.
Public Method UploadDocument Uploads a chunk of the document to the global cache.

Public Properties

Name Description
Public Property Cache The LEADTOOLS ObjectCache object responsible for managing cache items and expiration policies.
Public Property InvalidUserTokenException Custom error to be thrown when the user tries to access a document with an invalid user token.
Public Property MimeTypes MIME type whitelisting support.
Public Property RasterCodecsTemplate Global template used when loading and saving raster and SVG images.

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

Leadtools.Document Assembly