public class PdfDocumentInfo extends Object
Info dictionary from PdfDocument
root which provides utility methods to work with the Info dictionary.
For more information about each of the PDF document info key, see ISO 32000-2 Table 349.
| Modifier and Type | Method and Description |
|---|---|
PdfDocumentInfo |
addCreationDate()
Adds the creation date of the
PdfDocument. |
PdfDocumentInfo |
addModDate()
Adds modification date of the
PdfDocument. |
String |
getAuthor()
Gets the author of the
PdfDocument. |
String |
getCreator()
Gets the creator of the
PdfDocument. |
String |
getKeywords()
Gets the keywords of the
PdfDocument. |
String |
getMoreInfo(String key)
Gets the value of additional key of
Info dictionary. |
String |
getProducer()
Gets the producer of the
PdfDocument. |
String |
getSubject()
Gets the subject of the
PdfDocument. |
String |
getTitle()
Gets the title of the
PdfDocument. |
PdfName |
getTrapped()
Gets the trapped of the
PdfDocument. |
PdfDocumentInfo |
removeCreationDate()
Remove creation date from the document info dictionary.
|
PdfDocumentInfo |
setAuthor(String author)
Sets the author of the
PdfDocument. |
PdfDocumentInfo |
setCreator(String creator)
Sets the creator of the
PdfDocument. |
PdfDocumentInfo |
setKeywords(String keywords)
Sets the keywords of the
PdfDocument. |
void |
setMoreInfo(Map<String,String> moreInfo)
Sets custom keys and values into
Info dictionary of the PdfDocument. |
void |
setMoreInfo(String key,
String value)
Sets custom key and value into
Info dictionary of the PdfDocument. |
PdfDocumentInfo |
setProducer(String producer)
Sets a producer line for the
PdfDocument described by this instance. |
PdfDocumentInfo |
setSubject(String subject)
Sets the subject of the
PdfDocument. |
PdfDocumentInfo |
setTitle(String title)
Sets title of the
PdfDocument. |
PdfDocumentInfo |
setTrapped(PdfName trapped)
Sets the trapped of the
PdfDocument. |
public PdfDocumentInfo setTitle(String title)
PdfDocument.title - the title to setPdfDocumentInfo instancepublic PdfDocumentInfo setAuthor(String author)
PdfDocument.author - the author to setPdfDocumentInfo instancepublic PdfDocumentInfo setSubject(String subject)
PdfDocument.subject - the subject to setPdfDocumentInfo instancepublic PdfDocumentInfo setKeywords(String keywords)
PdfDocument.keywords - the keywords to setPdfDocumentInfo instancepublic PdfDocumentInfo setCreator(String creator)
PdfDocument.creator - the creator to setPdfDocumentInfo instancepublic PdfDocumentInfo setProducer(String producer)
PdfDocument described by this instance.producer - is a new producer line to setpublic PdfDocumentInfo setTrapped(PdfName trapped)
PdfDocument.
The value indicates whether the document has been modified to include trapping information or not.
trapped - trapped to setPdfDocumentInfo instancepublic String getTitle()
PdfDocument.public String getAuthor()
PdfDocument.public String getSubject()
PdfDocument.public String getKeywords()
PdfDocument.public String getCreator()
PdfDocument.public String getProducer()
PdfDocument.public PdfName getTrapped()
PdfDocument.
The value indicates whether the document has been modified to include trapping information or not.
public PdfDocumentInfo addCreationDate()
PdfDocument.PdfDocumentInfo instancepublic PdfDocumentInfo removeCreationDate()
public PdfDocumentInfo addModDate()
PdfDocument.PdfDocumentInfo instancepublic void setMoreInfo(Map<String,String> moreInfo)
Info dictionary of the PdfDocument.moreInfo - the map of keys and values to be setpublic void setMoreInfo(String key, String value)
Info dictionary of the PdfDocument.key - the keyvalue - the valueCopyright © 1998–2025 Apryse Group NV. All rights reserved.