public final class PdfMetadata extends DocumentMetadata<PdfMetadataProperty>
Represents metadata in DocumentType.Pdf
document.
Constructor and Description |
---|
PdfMetadata()
Initializes a new instance of the
PdfMetadata class. |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
String value)
Adds metadata with string value.
|
String |
getAuthor()
Gets document's author.
|
Date |
getCreatedDate()
Gets or sets the date of document creation.
|
String |
getCreator()
Gets creator of the document.
|
protected PdfMetadataProperty |
getInstance() |
String |
getKeywords()
Gets keywords.
|
Date |
getModifiedDate()
Gets the date of document modification.
|
String |
getProducer()
Gets document producer.
|
String |
getSubject()
Gets subject of the document.
|
String |
getTitle()
Gets title of the document.
|
boolean |
getTrappedFlag()
Gets trapped flag.
|
String |
getVersion()
Gets the version of PDF, for example: 1.6 etc.
|
boolean |
isBuiltIn(String key)
Returns true if metadata key is built-in in PDF document.
|
boolean |
isReadOnly(String key)
Returns true if built-in metadata key is read-only in PDF document.
|
void |
setAuthor(String value)
Sets document's author.
|
void |
setCreatedDate(Date value)
Gets or sets the date of document creation.
|
void |
setKeywords(String value)
Sets keywords.
|
void |
setModifiedDate(Date value)
Sets the date of document modification.
|
void |
setSubject(String value)
Sets subject of the document.
|
void |
setTitle(String value)
Sets title of the document.
|
void |
setTrappedFlag(boolean value)
Sets trapped flag.
|
clear, clearBuiltInData, clearCustomData, containsKey, getCollection, getCount, getKeys, readPropertyValue, remove, setValueByKey
getByType, getMetadataType, readByStringKey
public PdfMetadata()
Initializes a new instance of the PdfMetadata
class.
public final String getAuthor()
Gets document's author.
public final void setAuthor(String value)
Sets document's author.
value
- The author.public final Date getCreatedDate()
Gets or sets the date of document creation.
public final void setCreatedDate(Date value)
Gets or sets the date of document creation.
public final String getCreator()
Gets creator of the document.
public final String getKeywords()
Gets keywords.
public final void setKeywords(String value)
Sets keywords.
value
- The keywords.public final Date getModifiedDate()
Gets the date of document modification.
public final void setModifiedDate(Date value)
Sets the date of document modification.
value
- The modified date.public final String getProducer()
Gets document producer.
public final String getSubject()
Gets subject of the document.
public final void setSubject(String value)
Sets subject of the document.
value
- The subject.public final String getTitle()
Gets title of the document.
public final void setTitle(String value)
Sets title of the document.
value
- The title.public final boolean getTrappedFlag()
Gets trapped flag.
true
if [trapped flag]; otherwise, false
.public final void setTrappedFlag(boolean value)
Sets trapped flag.
value
- true
if [trapped flag]; otherwise, false
.public final String getVersion()
Gets the version of PDF, for example: 1.6 etc.
public final void add(String key, String value)
Adds metadata with string value.
key
- Metadata key.value
- Metadata value.public boolean isBuiltIn(String key)
Returns true if metadata key is built-in in PDF document.
isBuiltIn
in class DocumentMetadata<PdfMetadataProperty>
key
- Metadata key.ArgumentNullException
- Metadata key could not be null.public boolean isReadOnly(String key)
Returns true if built-in metadata key is read-only in PDF document.
isReadOnly
in class DocumentMetadata<PdfMetadataProperty>
key
- Metadata key.protected PdfMetadataProperty getInstance()
getInstance
in class DocumentMetadata<PdfMetadataProperty>