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