Package com.itextpdf.kernel.pdf
Class PdfDocumentInfo
java.lang.Object
com.itextpdf.kernel.pdf.PdfDocumentInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PdfDictionary
(package private) static final PdfName[]
-
Constructor Summary
ConstructorsConstructorDescriptionPdfDocumentInfo
(PdfDictionary pdfObject, PdfDocument pdfDocument) Create a PdfDocumentInfo based on the passed PdfDictionary. -
Method Summary
Modifier and TypeMethodDescriptiongetMoreInfo
(String key) (package private) PdfDictionary
private String
getStringValue
(PdfName name) getTitle()
(package private) PdfDocumentInfo
Remove creation date from the document info dictionary.setCreator
(String creator) setKeywords
(String keywords) void
setMoreInfo
(String key, String value) void
setMoreInfo
(Map<String, String> moreInfo) setProducer
(String producer) Sets a producer line for thePdfDocument
described by this instance.setSubject
(String subject) setTrapped
(PdfName trapped)
-
Field Details
-
PDF20_DEPRECATED_KEYS
-
infoDictionary
-
-
Constructor Details
-
PdfDocumentInfo
PdfDocumentInfo(PdfDictionary pdfObject, PdfDocument pdfDocument) Create a PdfDocumentInfo based on the passed PdfDictionary.- Parameters:
pdfObject
- PdfDictionary containing PdfDocumentInfo
-
-
Method Details
-
setTitle
-
setAuthor
-
setSubject
-
setKeywords
-
setCreator
-
setProducer
Sets a producer line for thePdfDocument
described by this instance.- Parameters:
producer
- is a new producer line to set- Returns:
- this instance
-
setTrapped
-
getTitle
-
getAuthor
-
getSubject
-
getKeywords
-
getCreator
-
getProducer
-
getTrapped
-
addCreationDate
-
removeCreationDate
Remove creation date from the document info dictionary.- Returns:
- this instance.
-
addModDate
-
setMoreInfo
-
setMoreInfo
-
getMoreInfo
-
getPdfObject
PdfDictionary getPdfObject() -
put
-
getStringValue
-