Package com.itextpdf.kernel.pdf
Class PdfDocumentInfo
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfDocumentInfo
-
public class PdfDocumentInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private PdfDictionary
infoDictionary
(package private) static PdfName[]
PDF20_DEPRECATED_KEYS
-
Constructor Summary
Constructors Constructor Description PdfDocumentInfo(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDocumentInfo
addCreationDate()
PdfDocumentInfo
addModDate()
java.lang.String
getAuthor()
java.lang.String
getCreator()
java.lang.String
getKeywords()
java.lang.String
getMoreInfo(java.lang.String key)
(package private) PdfDictionary
getPdfObject()
java.lang.String
getProducer()
private java.lang.String
getStringValue(PdfName name)
java.lang.String
getSubject()
java.lang.String
getTitle()
PdfName
getTrapped()
(package private) PdfDocumentInfo
put(PdfName key, PdfObject value)
PdfDocumentInfo
removeCreationDate()
Remove creation date from the document info dictionary.PdfDocumentInfo
setAuthor(java.lang.String author)
PdfDocumentInfo
setCreator(java.lang.String creator)
PdfDocumentInfo
setKeywords(java.lang.String keywords)
void
setMoreInfo(java.lang.String key, java.lang.String value)
void
setMoreInfo(java.util.Map<java.lang.String,java.lang.String> moreInfo)
PdfDocumentInfo
setProducer(java.lang.String producer)
Sets a producer line for thePdfDocument
described by this instance.PdfDocumentInfo
setSubject(java.lang.String subject)
PdfDocumentInfo
setTitle(java.lang.String title)
PdfDocumentInfo
setTrapped(PdfName trapped)
-
-
-
Field Detail
-
PDF20_DEPRECATED_KEYS
static final PdfName[] PDF20_DEPRECATED_KEYS
-
infoDictionary
private PdfDictionary infoDictionary
-
-
Constructor Detail
-
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 Detail
-
setTitle
public PdfDocumentInfo setTitle(java.lang.String title)
-
setAuthor
public PdfDocumentInfo setAuthor(java.lang.String author)
-
setSubject
public PdfDocumentInfo setSubject(java.lang.String subject)
-
setKeywords
public PdfDocumentInfo setKeywords(java.lang.String keywords)
-
setCreator
public PdfDocumentInfo setCreator(java.lang.String creator)
-
setProducer
public PdfDocumentInfo setProducer(java.lang.String producer)
Sets a producer line for thePdfDocument
described by this instance.- Parameters:
producer
- is a new producer line to set- Returns:
- this instance
-
setTrapped
public PdfDocumentInfo setTrapped(PdfName trapped)
-
getTitle
public java.lang.String getTitle()
-
getAuthor
public java.lang.String getAuthor()
-
getSubject
public java.lang.String getSubject()
-
getKeywords
public java.lang.String getKeywords()
-
getCreator
public java.lang.String getCreator()
-
getProducer
public java.lang.String getProducer()
-
getTrapped
public PdfName getTrapped()
-
addCreationDate
public PdfDocumentInfo addCreationDate()
-
removeCreationDate
public PdfDocumentInfo removeCreationDate()
Remove creation date from the document info dictionary.- Returns:
- this instance.
-
addModDate
public PdfDocumentInfo addModDate()
-
setMoreInfo
public void setMoreInfo(java.util.Map<java.lang.String,java.lang.String> moreInfo)
-
setMoreInfo
public void setMoreInfo(java.lang.String key, java.lang.String value)
-
getMoreInfo
public java.lang.String getMoreInfo(java.lang.String key)
-
getPdfObject
PdfDictionary getPdfObject()
-
put
PdfDocumentInfo put(PdfName key, PdfObject value)
-
getStringValue
private java.lang.String getStringValue(PdfName name)
-
-