COSObjectable
public class PDDocumentInformation extends java.lang.Object implements COSObjectable
Constructor | Description |
---|---|
PDDocumentInformation() |
Default Constructor.
|
PDDocumentInformation(COSDictionary dic) |
Constructor that is used for a preexisting dictionary.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getAuthor() |
This will get the author of the document.
|
COSBase |
getCOSObject() |
Convert this standard java object to a COS object.
|
java.util.Calendar |
getCreationDate() |
This will get the creation date of the document.
|
java.lang.String |
getCreator() |
This will get the creator of the document.
|
java.lang.String |
getCustomMetadataValue(java.lang.String fieldName) |
This will get the value of a custom metadata information field for the document.
|
COSDictionary |
getDictionary() |
This will get the underlying dictionary that this object wraps.
|
java.lang.String |
getKeywords() |
This will get the keywords of the document.
|
java.util.Set<java.lang.String> |
getMetadataKeys() |
This will get the keys of all metadata information fields for the document.
|
java.util.Calendar |
getModificationDate() |
This will get the modification date of the document.
|
java.lang.String |
getProducer() |
This will get the producer of the document.
|
java.lang.Object |
getPropertyStringValue(java.lang.String propertyKey) |
Return the properties String value.
|
java.lang.String |
getSubject() |
This will get the subject of the document.
|
java.lang.String |
getTitle() |
This will get the title of the document.
|
java.lang.String |
getTrapped() |
This will get the trapped value for the document.
|
void |
setAuthor(java.lang.String author) |
This will set the author of the document.
|
void |
setCreationDate(java.util.Calendar date) |
This will set the creation date of the document.
|
void |
setCreator(java.lang.String creator) |
This will set the creator of the document.
|
void |
setCustomMetadataValue(java.lang.String fieldName,
java.lang.String fieldValue) |
Set the custom metadata value.
|
void |
setKeywords(java.lang.String keywords) |
This will set the keywords of the document.
|
void |
setModificationDate(java.util.Calendar date) |
This will set the modification date of the document.
|
void |
setProducer(java.lang.String producer) |
This will set the producer of the document.
|
void |
setSubject(java.lang.String subject) |
This will set the subject of the document.
|
void |
setTitle(java.lang.String title) |
This will set the title of the document.
|
void |
setTrapped(java.lang.String value) |
This will set the trapped of the document.
|
public PDDocumentInformation()
public PDDocumentInformation(COSDictionary dic)
dic
- The underlying dictionary.public COSDictionary getDictionary()
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public java.lang.Object getPropertyStringValue(java.lang.String propertyKey)
Allows to retrieve the low level date for validation purposes.
propertyKey
- the dictionaries keypublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The new title for the document.public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- The new author for the document.public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject
- The new subject for the document.public java.lang.String getKeywords()
public void setKeywords(java.lang.String keywords)
keywords
- The new keywords for the document.public java.lang.String getCreator()
public void setCreator(java.lang.String creator)
creator
- The new creator for the document.public java.lang.String getProducer()
public void setProducer(java.lang.String producer)
producer
- The new producer for the document.public java.util.Calendar getCreationDate() throws java.io.IOException
java.io.IOException
- If there is an error creating the date.public void setCreationDate(java.util.Calendar date)
date
- The new creation date for the document.public java.util.Calendar getModificationDate() throws java.io.IOException
java.io.IOException
- If there is an error creating the date.public void setModificationDate(java.util.Calendar date)
date
- The new modification date for the document.public java.lang.String getTrapped()
public java.util.Set<java.lang.String> getMetadataKeys()
public java.lang.String getCustomMetadataValue(java.lang.String fieldName)
fieldName
- Name of custom metadata field from pdf document.public void setCustomMetadataValue(java.lang.String fieldName, java.lang.String fieldValue)
fieldName
- The name of the custom metadata field.fieldValue
- The value to the custom metadata field.public void setTrapped(java.lang.String value)
value
- The new trapped value for the document.