public class PdfDocumentInfo extends PdfObjectWrapper<PdfDictionary>
Constructor and Description |
---|
PdfDocumentInfo(PdfDictionary pdfObject) |
PdfDocumentInfo(PdfDictionary pdfObject, PdfDocument pdfDocument)
Create a PdfDocumentInfo based on the passed PdfDictionary and linked to the passed PdfDocument.
|
PdfDocumentInfo(PdfDocument pdfDocument)
Create a default, empty PdfDocumentInfo and link it to the passed PdfDocument
|
Modifier and Type | Method and Description |
---|---|
PdfDocumentInfo |
addCreationDate() |
PdfDocumentInfo |
addModDate() |
void |
flush() |
String |
getAuthor() |
String |
getCreator() |
String |
getKeywords() |
String |
getProducer() |
String |
getSubject() |
String |
getTitle() |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
PdfDocumentInfo |
setAuthor(String author) |
PdfDocumentInfo |
setCreator(String creator) |
PdfDocumentInfo |
setKeywords(String keywords) |
void |
setMoreInfo(Map<String,String> moreInfo) |
void |
setMoreInfo(String key, String value) |
PdfDocumentInfo |
setSubject(String subject) |
PdfDocumentInfo |
setTitle(String title) |
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfDocumentInfo(PdfDictionary pdfObject, PdfDocument pdfDocument)
pdfObject
- PdfDictionary containing PdfDocumentInfo
pdfDocument
- PdfDocument the PdfDocumentInfo corresponds to.
public PdfDocumentInfo(PdfDictionary pdfObject)
public PdfDocumentInfo(PdfDocument pdfDocument)
pdfDocument
-
public PdfDocumentInfo setTitle(String title)
public PdfDocumentInfo setAuthor(String author)
public PdfDocumentInfo setSubject(String subject)
public PdfDocumentInfo setKeywords(String keywords)
public PdfDocumentInfo setCreator(String creator)
public String getTitle()
public String getAuthor()
public String getSubject()
public String getKeywords()
public String getCreator()
public String getProducer()
public PdfDocumentInfo addCreationDate()
public PdfDocumentInfo addModDate()
public void flush()
flush
in class PdfObjectWrapper<PdfDictionary>
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2018 iText Group NV. All rights reserved.