public final class DocumentInfo extends com.aspose.ms.System.Collections.Generic.Dictionary<String,String>
Represents meta information of PDF document.
com.aspose.ms.System.Collections.Generic.Dictionary.Enumerator<TKey,TValue>, com.aspose.ms.System.Collections.Generic.Dictionary.KeyCollection<TKey,TValue>, com.aspose.ms.System.Collections.Generic.Dictionary.Link, com.aspose.ms.System.Collections.Generic.Dictionary.ValueCollection<TKey,TValue>
Constructor and Description |
---|
DocumentInfo(IDocument document)
Initialize DocumentInfo instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(String key,
String 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.).
|
String |
get_Item(String 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 |
remove(String key)
Removes the element with the specified key from the collection.
|
void |
set_Item(String key,
String 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.
|
addItem, containsItem, containsKey, containsValue, copyTo, copyToTArray, getComparer, getDictionaryEntryEnumerator, getKeys, getSyncRoot, getValues, isFixedSize, isReadOnly, isSynchronized, iterator, removeItem, removeItemByKey, size, tryGetValue
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
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(String key, String value)
Adds an element with the specified key and value into the collection.
addItem
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,String>
addItem
in class com.aspose.ms.System.Collections.Generic.Dictionary<String,String>
key
- The key of the element to add.value
- The value of the element to add. The value can be null.public void remove(String key)
Removes the element with the specified key from the collection.
key
- The key of the element to remove.public void set_Item(String key, String value)
Sets the value associated with the specified key.
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 key