Package org.jpedal.constants
Class DocumentInfo
java.lang.Object
org.jpedal.constants.DocumentInfo
Represents the document info dictionary from a PDF.
Can also be transformed into an XMP packet for embedded as a document metadata stream.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum to represent trapping -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the author of the document, ornullif not set.Returns the creation date of the document, ornullif not set.Returns the creator of the document, ornullif not set.Returns the keywords associated with the document, ornullif not set.Returns the last modification date of the document, ornullif not set.Returns the producer of the document, ornullif not set.Returns the subject of the document, ornullif not set.getTitle()Returns the document’s title, ornullif not set.Returns the trapped status of the document, ornullif not set.Sets the author of the document.setCreationDate(Instant creationDate) Sets the creation date of the document.setCreator(String creator) Sets the creator of the document.setKeywords(String keywords) Sets the keywords associated with the document.setModDate(Instant modDate) Sets the last modification date of the document.setProducer(String producer) Sets the producer of the document.setSubject(String subject) Sets the subject of the document.Sets the document’s title.setTrapped(DocumentInfo.TrappedStatus trapped) Sets the trapped status of the document.toXMP()Convert this DocumentInfo object into an XMP packet which can be embedded as a document metadata stream.
-
Constructor Details
-
DocumentInfo
public DocumentInfo()
-
-
Method Details
-
getTitle
Returns the document’s title, ornullif not set.- Returns:
- the document’s title, or
nullif not set
-
setTitle
Sets the document’s title.- Parameters:
title- the document’s title
-
getAuthor
Returns the author of the document, ornullif not set.- Returns:
- the author of the document, or
nullif not set
-
setAuthor
Sets the author of the document.- Parameters:
author- the author’s name
-
getSubject
Returns the subject of the document, ornullif not set.- Returns:
- the subject of the document, or
nullif not set
-
setSubject
Sets the subject of the document.- Parameters:
subject- the subject
-
getKeywords
Returns the keywords associated with the document, ornullif not set.- Returns:
- the keywords associated with the document, or
nullif not set
-
setKeywords
Sets the keywords associated with the document.- Parameters:
keywords- the keywords
-
getCreator
Returns the creator of the document, ornullif not set.- Returns:
- the creator of the document, or
nullif not set
-
setCreator
Sets the creator of the document.- Parameters:
creator- the creator application/tool name
-
getProducer
Returns the producer of the document, ornullif not set.- Returns:
- the producer of the document, or
nullif not set
-
setProducer
Sets the producer of the document.- Parameters:
producer- the producer tool name
-
getCreationDate
Returns the creation date of the document, ornullif not set.- Returns:
- the creation date of the document, or
nullif not set
-
setCreationDate
Sets the creation date of the document.- Parameters:
creationDate- the document’s creation date and time
-
getModDate
Returns the last modification date of the document, ornullif not set.- Returns:
- the last modification date of the document, or
nullif not set
-
setModDate
Sets the last modification date of the document.- Parameters:
modDate- the document’s modification date and time
-
getTrapped
Returns the trapped status of the document, ornullif not set.- Returns:
- the trapped status of the document, or
nullif not set
-
setTrapped
Sets the trapped status of the document.- Parameters:
trapped- the trapped status
-
toXMP
Convert this DocumentInfo object into an XMP packet which can be embedded as a document metadata stream.- Returns:
- an XML object of the XMP packet
- Throws:
IOException- if the XML cannot be generated
-