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 or sets 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 or sets keywords.
|
Date |
getModifiedDate()
Gets or sets the date of document modification.
|
String |
getProducer()
Gets document producer.
|
String |
getSubject()
Gets or sets subject of the document.
|
String |
getTitle()
Gets or sets title of the document.
|
boolean |
getTrappedFlag()
Gets or sets 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)
Gets or sets document's author.
|
void |
setCreatedDate(Date value)
Gets or sets the date of document creation.
|
void |
setKeywords(String value)
Gets or sets keywords.
|
void |
setModifiedDate(Date value)
Gets or sets the date of document modification.
|
void |
setSubject(String value)
Gets or sets subject of the document.
|
void |
setTitle(String value)
Gets or sets title of the document.
|
void |
setTrappedFlag(boolean value)
Gets or 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 or sets document's author.
Value: The author.public final void setAuthor(String value)
Gets or 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.
Value: The creator.public final String getKeywords()
Gets or sets keywords.
Value: The keywords.public final void setKeywords(String value)
Gets or sets keywords.
Value: The keywords.public final Date getModifiedDate()
Gets or sets the date of document modification.
Value: The modified date.public final void setModifiedDate(Date value)
Gets or sets the date of document modification.
Value: The modified date.public final String getProducer()
Gets document producer.
Value: The producer.public final String getSubject()
Gets or sets subject of the document.
Value: The subject.public final void setSubject(String value)
Gets or sets subject of the document.
Value: The subject.public final String getTitle()
Gets or sets title of the document.
Value: The title.public final void setTitle(String value)
Gets or sets title of the document.
Value: The title.public final boolean getTrappedFlag()
Gets or sets trapped flag.
Value:true
if [trapped flag]; otherwise, false
.public final void setTrappedFlag(boolean value)
Gets or sets trapped flag.
Value:true
if [trapped flag]; otherwise, false
.public final String getVersion()
Gets the version of PDF, for example: 1.6 etc.
Value: The version.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>
Copyright © 2017. All rights reserved.