public final class DocumentInfo
extends com.aspose.ms.System.Collections.Hashtable
Represents meta information of PDF document.
Constructor and Description |
---|
DocumentInfo(IDocument document)
Initialize DocumentInfo instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(Object key,
Object value)
Adds an element with the specified key and value into the collection.
|
void |
clear()
Clears the document info.
|
void |
clearCustomData()
Clears custom data only, leaves all other predefined values (Title, Author, etc.).
|
Object |
get_Item(Object key)
Gets or sets the value associated with the specified key.
|
String |
getAuthor()
Gets document author.
|
Date |
getCreationDate()
Gets the date of document creation.
|
String |
getCreator()
Gets document creator.
|
String |
getKeywords()
Gets the keywords of the document.
|
Date |
getModDate() |
String |
getProducer()
Gets the document producer.
|
String |
getSubject()
Gets the subject of the document.
|
String |
getTitle()
Gets document title.
|
String |
getTrapped()
Gets the trapped flag.
|
static boolean |
isPredefinedKey(String key)
Determines if the key is predefined (Title, Author, etc.), not custom.
|
void |
removeItem(Object key)
Removes the element with the specified key from the collection.
|
void |
set_Item(Object key,
Object value) |
void |
setAuthor(String value)
Sets document author.
|
void |
setCreationDate(Date value)
Sets the date of document creation.
|
void |
setKeywords(String value)
Set the keywords of the document.
|
void |
setModDate(Date value) |
void |
setSubject(String value)
Sets the subject of the document.
|
void |
setTitle(String value)
Sets document title.
|
void |
setTrapped(String value)
Sets the trapped flag.
|
contains, containsKey, containsValue, copyTo, deepClone, entrySet, fromJava, get, getKeys, getObjectData, getSyncRoot, getValues, isEmpty, isFixedSize, isReadOnly, isSynchronized, iterator, keySet, onDeserialization, put, putAll, remove, size, sync, toJava, values
public DocumentInfo(IDocument document)
Initialize DocumentInfo instance.
document
- The info of this document will be used for initialization.public String getTitle()
Gets document title.
public void setTitle(String value)
Sets document title.
public String getCreator()
Gets document creator.
public String getAuthor()
Gets document author.
public void setAuthor(String value)
Sets document author.
public String getSubject()
Gets the subject of the document.
public void setSubject(String value)
Sets the subject of the document.
public String getKeywords()
Gets the keywords of the document.
public void setKeywords(String value)
Set the keywords of the document.
public String getProducer()
Gets the document producer.
public Date getCreationDate()
Gets the date of document creation.
public void setCreationDate(Date value)
Sets the date of document creation.
public Date getModDate()
public void setModDate(Date value)
public String getTrapped()
Gets the trapped flag.
public void setTrapped(String value)
Sets the trapped flag.
public void clear()
Clears the document info.
public void addItem(Object key, Object value)
Adds an element with the specified key and value into the collection.
addItem
in interface com.aspose.ms.System.Collections.IDictionary
addItem
in class com.aspose.ms.System.Collections.Hashtable
key
- The key of the element to add.value
- The value of the element to add. The value can be null.public void removeItem(Object key)
Removes the element with the specified key from the collection.
removeItem
in interface com.aspose.ms.System.Collections.IDictionary
removeItem
in class com.aspose.ms.System.Collections.Hashtable
key
- The key of the element to remove.public Object get_Item(Object key)
Gets or sets the value associated with the specified key.
get_Item
in interface com.aspose.ms.System.Collections.IDictionary
get_Item
in class com.aspose.ms.System.Collections.Hashtable
key
- The key whose value to get or set.public void set_Item(Object key, Object value)
set_Item
in interface com.aspose.ms.System.Collections.IDictionary
set_Item
in class com.aspose.ms.System.Collections.Hashtable
public void clearCustomData()
Clears custom data only, leaves all other predefined values (Title, Author, etc.).
public static boolean isPredefinedKey(String key)
Determines if the key is predefined (Title, Author, etc.), not custom.
key
- Selected keyCopyright © 2014 Aspose. All Rights Reserved.