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 the value associated with the specified key.
|
String |
getAuthor()
Gets document author.
|
Date |
getCreationDate()
Gets the date of document creation.
|
double |
getCreationTimeZone()
Time zone of creation date in milliseconds.
|
String |
getCreator()
Gets document creator.
|
String |
getKeywords()
Gets the keywords of the document.
|
Date |
getModDate()
Gets the date of document modification.
|
double |
getModTimeZone()
Time zone of modification date.
|
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)
Sets the value associated with the specified key.
|
void |
setAuthor(String value)
Sets document author.
|
void |
setCreationDate(Date value)
Sets the date of document creation.
|
void |
setCreationTimeZone(double value)
Time zone of creation date in milliseconds.
|
void |
setKeywords(String value)
Set the keywords of the document.
|
void |
setModDate(Date value)
Sets the date of document modification.
|
void |
setModTimeZone(double value)
Time zone of modification date.
|
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, getVersion, isEmpty, isFixedSize, isReadOnly, isSynchronized, iterator, keySet, onDeserialization, put, putAll, remove, size, sync, toJava, values
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
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.
value
- String valuepublic String getCreator()
Gets document creator.
public String getAuthor()
Gets document author.
public void setAuthor(String value)
Sets document author.
value
- String valuepublic String getSubject()
Gets the subject of the document.
public void setSubject(String value)
Sets the subject of the document.
value
- String valuepublic String getKeywords()
Gets the keywords of the document.
public void setKeywords(String value)
Set the keywords of the document.
value
- String valuepublic 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.
value
- Date objectpublic double getCreationTimeZone()
Time zone of creation date in milliseconds.
public void setCreationTimeZone(double value)
Time zone of creation date in milliseconds.
value
- in millisecondspublic double getModTimeZone()
Time zone of modification date.
public void setModTimeZone(double value)
Time zone of modification date.
value
- double valuepublic Date getModDate()
Gets the date of document modification.
public void setModDate(Date value)
Sets the date of document modification.
value
- Date objectpublic String getTrapped()
Gets the trapped flag.
public void setTrapped(String value)
Sets the trapped flag.
value
- String valuepublic 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 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)
Sets the value associated with the specified key.
set_Item
in interface com.aspose.ms.System.Collections.IDictionary
set_Item
in class com.aspose.ms.System.Collections.Hashtable
key
- String Objectvalue
- Objectpublic 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 © 2017 Aspose. All Rights Reserved.