Package com.itextpdf.kernel.pdf
Class PdfDocumentInfo
java.lang.Object
com.itextpdf.kernel.pdf.PdfDocumentInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPdfDocumentInfo
(PdfDictionary pdfObject, PdfDocument pdfDocument) Create a PdfDocumentInfo based on the passed PdfDictionary.PdfDocumentInfo
(PdfDocument pdfDocument) Create a default, empty PdfDocumentInfo and link it to the passed PdfDocument -
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
-
PdfDocumentInfo
PdfDocumentInfo(PdfDocument pdfDocument) Create a default, empty PdfDocumentInfo and link it to the passed PdfDocument- Parameters:
pdfDocument
- document the info will belong to
-
-
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
-