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.
|
com.aspose.ms.System.DateTime |
getCreationDateInternal() |
String |
getCreator()
Gets document creator.
|
String |
getKeywords()
Gets the keywords of the document.
|
Date |
getModDate() |
com.aspose.ms.System.DateTime |
getModDateInternal()
Gets or sets the date of document modification.
|
String |
getProducer()
Gets the document producer.
|
String |
getSubject()
Gets the subject of the document.
|
String |
getTitle()
Gets document title.
|
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 |
setCreationDateInternal(com.aspose.ms.System.DateTime value) |
void |
setCreator(String value)
Sets document creator.
|
void |
setKeywords(String value)
Set the keywords of the document.
|
void |
setModDate(Date value) |
void |
setModDateInternal(com.aspose.ms.System.DateTime value) |
void |
setSubject(String value)
Sets the subject of the document.
|
void |
setTitle(String value)
Sets document title.
|
contains, containsKey, containsValue, copyTo, deepClone, entrySet, fromJava, get, getKeys, getObjectData, getSyncRoot, getValues, getVersion, 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 void setCreator(String value)
Sets 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 com.aspose.ms.System.DateTime getCreationDateInternal()
public Date getCreationDate()
Gets the date of document creation.
public void setCreationDateInternal(com.aspose.ms.System.DateTime value)
public void setCreationDate(Date value)
Sets the date of document creation.
public com.aspose.ms.System.DateTime getModDateInternal()
Gets or sets the date of document modification.
public Date getModDate()
public void setModDateInternal(com.aspose.ms.System.DateTime value)
public void setModDate(Date value)
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
- Copyright © 2017 Aspose. All Rights Reserved.