Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

DocumentMetadata Class






Members 
Manages the metadata of the document.
Object Model
Syntax
'Usage
 
Dim instance As DocumentMetadata
public class DocumentMetadata extends HashMap<String, String>
            
Remarks

DocumentMetadata manages the metadata of the document and can be accessed through the Metadata property of Document.

The metadata includes default values added by the DocumentFactory when the document is loaded or created as well as any other data extracted from the document file itself, such as author, subject and any keywords stored by other applications.

Each metadata item is a key/value pair of type string/string. It is up to the user to read the value string and convert to any other data type if required. DocumentMetadata derives from Dictionary<string, string> and items can be added to it directly.

When DocumentFactory creates a new document using Create or loads a document using LoadFromFile, LoadFromUri, LoadFromUriAsync or LoadFromStream the following metadata are automatically added:

Key Value
Created

Current time as string (DateTime.Now.ToString).

Accessed

Current time as string (DateTime.Now.ToString).

Modified

Current time as string (DateTime.Now.ToString).

When the document type is PDF, the DocumentFactory will add the values found in PDFDocument.DocumentProperties into DocumentMetadata. These values are then used when the document is converted as PDF.

When the document type supports file comments (RasterCodecs.CommentsSupported) such as EXIF, the DocumentFactory will add the value of the comments found into DocumentMetadata. These values are then used when the document is converted to another type that supports the same comments.

The user can add, modify or delete any values at any time and they will be saved and cached.

Example

For an example, refer to Document.

Requirements

Target Platforms

See Also

Reference

DocumentMetadata Members
Leadtools.Documents Namespace

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features