public class MetadataManager extends Object
PdfDocument
.
Constructor and Description |
---|
MetadataManager(InternalPdfDocument internalPdfDocument)
Please get MetadataManager by
PdfDocument.getMetadata() instead. |
Modifier and Type | Method and Description |
---|---|
String |
getAnyMetadata(String key)
Gets any metadata value of the document form given key.
|
String |
getAuthor()
Gets the Author of the document.
|
String |
getCreationDate()
Gets the PDF file creation DateTime.
|
String |
getCreator()
Gets the Creator of the document.
|
String |
getKeywords()
Gets Keywords of the document.
|
String |
getProducer()
Gets the Producer of the document.
|
String |
getSubject()
Gets Subject of the document.
|
String |
getTitle()
Gets the Title of the document.
|
void |
removeMetadata(String key)
Method for removing Metadata property by its name.
|
void |
setAnyMetadata(String key,
String value)
Sets any metadata value of the document form given key.
|
void |
setAuthor(String value)
Sets the Author of the document.
|
void |
setCreationDate(String value)
Sets the PDF file creation DateTime.
|
void |
setCreator(String value)
Sets the Creator of the document.
|
void |
setKeywords(String value)
Sets Keywords of the document.
|
String |
setModifiedDate()
Gets the PDF file last-modified DateTime.
|
void |
setModifiedDate(String value)
Sets the PDF file last-modified DateTime.
|
void |
setProducer(String value)
Sets the Producer of the document.
|
void |
setSubject(String value)
Sets the Subject of the document.
|
void |
setTitle(String value)
Sets the Title of the document.
|
public MetadataManager(InternalPdfDocument internalPdfDocument)
PdfDocument.getMetadata()
instead.internalPdfDocument
- the internal pdf documentpublic String getAuthor()
public String getAnyMetadata(String key)
key
- the keypublic void setAuthor(String value)
value
- the valuepublic void setAnyMetadata(String key, String value)
key
- the keyvalue
- the valuepublic String getCreationDate()
public void setCreationDate(String value)
value
- the valuepublic String setModifiedDate()
public void setModifiedDate(String value)
value
- the valuepublic String getCreator()
public void setCreator(String value)
value
- the valuepublic String getKeywords()
public void setKeywords(String value)
value
- the valuepublic String getProducer()
public void setProducer(String value)
value
- the valuepublic String getSubject()
public void setSubject(String value)
value
- the valuepublic String getTitle()
public void setTitle(String value)
value
- the valuepublic void removeMetadata(String key)
key
- The name of the property.Copyright © 2022–2023 Iron Software. All rights reserved.