DocumentInfo
Inheritance: java.lang.Object, com.aspose.ms.System.Collections.Generic.Dictionary< String , String > com.aspose.pdf.DocumentInfo, com.aspose.ms.System.Collections.Generic.Dictionary< String , String >, com.aspose.pdf.DocumentInfo
All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair< String, String », com.aspose.ms.System.Collections.Generic.IGenericDictionary< String, String >, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair< String, String », com.aspose.ms.System.Collections.IEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair< String, String », Iterable <com.aspose.ms.System.Collections.Generic.KeyValuePair< String, String »
public final class DocumentInfo extends com.aspose.ms.System.Collections.Generic.Dictionary< String , String >
Represents meta information of PDF document.
Constructors
| Constructor | Description |
|---|---|
| DocumentInfo | Initialize DocumentInfo instance. |
Methods
| Method | Description |
|---|---|
| addItem | Adds an element with the specified key and value into the collection. |
| clear | Clears the document info. |
| clearCustomData | Clears custom data only, leaves all other predefined values (Title, Author, etc.). |
| get_Item | Gets the value associated with the specified key. |
| getAuthor | Gets document author. |
| getCreationDate | Gets the date of document creation. |
| getCreationTimeZone | Time zone of creation date in milliseconds. |
| getCreator | Gets document creator. |
| getKeywords | Gets the keywords of the document. |
| getModDate | Gets the date of document modification. |
| getModTimeZone | Time zone of modification date. |
| getProducer | Gets the document producer. |
| getSubject | Gets the subject of the document. |
| getTitle | Gets document title. |
| getTrapped | Gets the trapped flag. |
| isPredefinedKey | Determines if the key is predefined (Title, Author, etc.), not custom. |
| remove | Removes the element with the specified key from the collection. |
| set_Item | Sets the value associated with the specified key. |
| setAuthor | Sets document author. |
| setCreationDate | Sets the date of document creation. |
| setCreationTimeZone | Time zone of creation date in milliseconds. |
| setCreator | Sets document creator. |
| setKeywords | Set the keywords of the document. |
| setModDate | Sets the date of document modification. |
| setModTimeZone | Time zone of modification date. |
| setProducer | Sets the document producer. |
| setSubject | Sets the subject of the document. |
| setTitle | Sets document title. |
| setTrapped | Sets the trapped flag. |
DocumentInfo
Initialize DocumentInfo instance.
addItem
Adds an element with the specified key and value into the collection.
clear
public void clear()
Clears the document info.
clearCustomData
public void clearCustomData()
Clears custom data only, leaves all other predefined values (Title, Author, etc.).
get_Item
Gets the value associated with the specified key.
getAuthor
public String getAuthor()
Gets document author.
Returns: String value
getCreationDate
public Date getCreationDate()
Gets the date of document creation.
Returns: Date object
getCreationTimeZone
public double getCreationTimeZone()
Time zone of creation date in milliseconds.
Returns: double value
getCreator
public String getCreator()
Gets document creator.
Returns: String value
getKeywords
public String getKeywords()
Gets the keywords of the document.
Returns: String value
getModDate
public Date getModDate()
Gets the date of document modification.
Returns: Date object
getModTimeZone
public double getModTimeZone()
Time zone of modification date.
Returns: double value
getProducer
public String getProducer()
Gets the document producer.
Returns: String value
getSubject
public String getSubject()
Gets the subject of the document.
Returns: String value
getTitle
public String getTitle()
Gets document title.
Returns: String value
getTrapped
public String getTrapped()
Gets the trapped flag.
Returns: String value
isPredefinedKey
Determines if the key is predefined (Title, Author, etc.), not custom.
remove
Removes the element with the specified key from the collection.
set_Item
Sets the value associated with the specified key.
setAuthor
Sets document author.
setCreationDate
Sets the date of document creation.
setCreationTimeZone
public void setCreationTimeZone(double value)
Time zone of creation date in milliseconds.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | in milliseconds |
setCreator
Sets document creator.
setKeywords
Set the keywords of the document.
setModDate
Sets the date of document modification.
setModTimeZone
public void setModTimeZone(double value)
Time zone of modification date.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setProducer
Sets the document producer.
setSubject
Sets the subject of the document.
setTitle
Sets document title.
setTrapped
Sets the trapped flag.