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 TypeMethodDescriptionGets the author of the document.Gets the creation date of the document.Gets the creator of the document.Gets the keywords associated with the document.Gets the last modification date of the document.Gets the producer of the document.Gets the subject of the document.getTitle()Gets the document’s title.Gets the trapped status of the document.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
Gets the document’s title.- Returns:
- the title of the document, or
nullif not set
-
setTitle
Sets the document’s title.- Parameters:
title- the document’s title
-
getAuthor
Gets the author of the document.- Returns:
- the author, or
nullif not set
-
setAuthor
Sets the author of the document.- Parameters:
author- the author’s name
-
getSubject
Gets the subject of the document.- Returns:
- the subject, or
nullif not set
-
setSubject
Sets the subject of the document.- Parameters:
subject- the subject
-
getKeywords
Gets the keywords associated with the document.- Returns:
- the keywords, or
nullif not set
-
setKeywords
Sets the keywords associated with the document.- Parameters:
keywords- the keywords
-
getCreator
Gets the creator of the document.- Returns:
- the creator, or
nullif not set
-
setCreator
Sets the creator of the document.- Parameters:
creator- the creator application/tool name
-
getProducer
Gets the producer of the document.- Returns:
- the producer, or
nullif not set
-
setProducer
Sets the producer of the document.- Parameters:
producer- the producer tool name
-
getCreationDate
Gets the creation date of the document.- Returns:
- the creation date, or
nullif not set
-
setCreationDate
Sets the creation date of the document.- Parameters:
creationDate- the document’s creation date and time
-
getModDate
Gets the last modification date of the document.- Returns:
- the modification date, or
nullif not set
-
setModDate
Sets the last modification date of the document.- Parameters:
modDate- the document’s modification date and time
-
getTrapped
Gets the trapped status of the document.- Returns:
- the trapped status, 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
-