Class MetadataSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the person who created the document or resource.The date and time the document or resource was originally created.The original application that created the document.Keywords associated with the document or resource.The date and time the document or resource was most recently modified.The application that created the PDF (Getter)The subject of the document or resource.getTitle()The title of the document or resource.voidThe name of the person who created the document or resource.voidsetCreationDate(OffsetDateTime value) The date and time the document or resource was originally created.voidsetCreator(String value) The original application that created the document.voidsetKeywords(String value) Keywords associated with the document or resource.voidThe date and time the document or resource was most recently modified.voidsetProducer(String value) The application that created the PDF (Setter)voidsetSubject(String value) The subject of the document or resource.voidThe title of the document or resource.Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Constructor Details
-
MetadataSettings
public MetadataSettings()
-
-
Method Details
-
getTitle
The title of the document or resource. (Getter)
This property corresponds to the "dc:title" entry in the XMP metadata and to the "Title" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closed
-
setTitle
The title of the document or resource. (Setter)
This property corresponds to the "dc:title" entry in the XMP metadata and to the "Title" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closed
-
getAuthor
The name of the person who created the document or resource. (Getter)
This property corresponds to the "dc:creator" entry in the XMP metadata and to the "Author" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closed
-
setAuthor
The name of the person who created the document or resource. (Setter)
This property corresponds to the "dc:creator" entry in the XMP metadata and to the "Author" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closed
-
getSubject
The subject of the document or resource. (Getter)
This property corresponds to the "dc:description" entry in the XMP metadata and to the "Subject" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closed
-
setSubject
The subject of the document or resource. (Setter)
This property corresponds to the "dc:description" entry in the XMP metadata and to the "Subject" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closed
-
getKeywords
Keywords associated with the document or resource. (Getter)
Keywords can be separated by:
- carriage return / line feed
- comma
- semicolon
- tab
- double space
This property corresponds to the "pdf:Keywords" entry in the XMP metadata and to the "Keywords" entry in the document information dictionary.
- Throws:
IllegalStateException- If the metadata settings have already been closed
-
setKeywords
Keywords associated with the document or resource. (Setter)
Keywords can be separated by:
- carriage return / line feed
- comma
- semicolon
- tab
- double space
This property corresponds to the "pdf:Keywords" entry in the XMP metadata and to the "Keywords" entry in the document information dictionary.
- Throws:
IllegalStateException- If the metadata settings have already been closed
-
getCreator
The original application that created the document. (Getter)
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.
- Throws:
IllegalStateException- If the metadata settings have already been closed
-
setCreator
The original application that created the document. (Setter)
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.
- Throws:
IllegalStateException- If the metadata settings have already been closed
-
getProducer
The application that created the PDF (Getter)
If the document has been converted to PDF from another format, the name of the PDF processor that converted the document to PDF.
This property corresponds to the "pdf:Producer" entry in the XMP metadata and to the "Producer" entry in the document information dictionary.
- Throws:
IllegalStateException- If the metadata settings have already been closed
-
setProducer
The application that created the PDF (Setter)
If the document has been converted to PDF from another format, the name of the PDF processor that converted the document to PDF.
This property corresponds to the "pdf:Producer" entry in the XMP metadata and to the "Producer" entry in the document information dictionary.
- Throws:
IllegalStateException- If the metadata settings have already been closed
-
getCreationDate
The date and time the document or resource was originally created. (Getter)
This property corresponds to the "xmp:CreateDate" entry in the XMP metadata and to the "CreationDate" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closed
-
setCreationDate
The date and time the document or resource was originally created. (Setter)
This property corresponds to the "xmp:CreateDate" entry in the XMP metadata and to the "CreationDate" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closedIllegalArgumentException- The date is invalid.
-
getModificationDate
The date and time the document or resource was most recently modified. (Getter)
This property corresponds to the "xmp:ModifyDate" entry in the XMP metadata and to the "ModDate" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closed
-
setModificationDate
The date and time the document or resource was most recently modified. (Setter)
This property corresponds to the "xmp:ModifyDate" entry in the XMP metadata and to the "ModDate" entry in the document information dictionary.- Throws:
IllegalStateException- If the metadata settings have already been closedIllegalArgumentException- The date is invalid.
-