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 PdfDictionaryinfoDictionary(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDocumentInfoaddCreationDate()PdfDocumentInfoaddModDate()java.lang.StringgetAuthor()java.lang.StringgetCreator()java.lang.StringgetKeywords()java.lang.StringgetMoreInfo(java.lang.String key)(package private) PdfDictionarygetPdfObject()java.lang.StringgetProducer()private java.lang.StringgetStringValue(PdfName name)java.lang.StringgetSubject()java.lang.StringgetTitle()PdfNamegetTrapped()(package private) PdfDocumentInfoput(PdfName key, PdfObject value)PdfDocumentInforemoveCreationDate()Remove creation date from the document info dictionary.PdfDocumentInfosetAuthor(java.lang.String author)PdfDocumentInfosetCreator(java.lang.String creator)PdfDocumentInfosetKeywords(java.lang.String keywords)voidsetMoreInfo(java.lang.String key, java.lang.String value)voidsetMoreInfo(java.util.Map<java.lang.String,java.lang.String> moreInfo)PdfDocumentInfosetProducer(java.lang.String producer)Sets a producer line for thePdfDocumentdescribed by this instance.PdfDocumentInfosetSubject(java.lang.String subject)PdfDocumentInfosetTitle(java.lang.String title)PdfDocumentInfosetTrapped(PdfName trapped)
-
-
-
Field Detail
-
PDF20_DEPRECATED_KEYS
static final PdfName[] PDF20_DEPRECATED_KEYS
-
infoDictionary
private final PdfDictionary infoDictionary
-
-
Constructor Detail
-
PdfDocumentInfo
PdfDocumentInfo(PdfDictionary pdfObject, PdfDocument pdfDocument)
Create a PdfDocumentInfo based on the passed PdfDictionary.- Parameters:
pdfObject- PdfDictionary containing PdfDocumentInfo
-
-
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 thePdfDocumentdescribed 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)
-
-