public class Metadata extends NativeObject
Represents the metadata of a document or an object in a document.
For document level metadata, all changes are reflected in both, XMP metadata and document info dictionary depending on the conformance of the document.
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getAuthor() |
The name of the person who created the document or resource.
|
java.time.OffsetDateTime |
getCreationDate() |
The date and time the document or resource was originally created.
|
java.lang.String |
getCreator() |
The original application that created the document.
|
java.lang.String |
getKeywords() |
Keywords associated with the document or resource.
|
java.time.OffsetDateTime |
getModificationDate() |
The date and time the document or resource was most recently modified.
|
java.lang.String |
getProducer() |
The application that created the PDF (Getter)
|
java.lang.String |
getSubject() |
The subject of the document or resource.
|
java.lang.String |
getTitle() |
The title of the document or resource.
|
equals, hashCode
public java.lang.String getTitle()
java.lang.IllegalStateException
- if the metadata have already been closedpublic java.lang.String getAuthor()
java.lang.IllegalStateException
- if the metadata have already been closedpublic java.lang.String getSubject()
java.lang.IllegalStateException
- if the metadata have already been closedpublic java.lang.String getKeywords()
Keywords can be separated by:
This property corresponds to the "pdf:Keywords" entry in the XMP metadata and to the "Keywords" entry in the document information dictionary.
java.lang.IllegalStateException
- if the metadata have already been closedpublic java.lang.String getCreator()
The name of the first known tool used to create the document or resource.
This property corresponds to the "xmp:CreatorTool" entry in the XMP metadata and to the "Creator" entry in the document information dictionary.
java.lang.IllegalStateException
- if the metadata have already been closedpublic java.lang.String getProducer()
If the document was converted to PDF from another format, the name of the PDF processor that converted it to PDF.
This property corresponds to the "pdf:Producer" entry in the XMP metadata and to the "Producer" entry in the document information dictionary.
java.lang.IllegalStateException
- if the metadata have already been closedpublic java.time.OffsetDateTime getCreationDate()
java.lang.IllegalStateException
- if the metadata have already been closedpublic java.time.OffsetDateTime getModificationDate() throws CorruptException
CorruptException
- The date is corrupt.java.lang.IllegalStateException
- if the metadata have already been closed