com.lowagie.text.pdf

Class PdfDocument.PdfInfo

public static class PdfDocument.PdfInfo extends PdfDictionary

PdfInfo is the PDF InfoDictionary.

A document's trailer may contain a reference to an Info dictionary that provides information about the document. This optional dictionary may contain one or more keys, whose values should be strings.
This object is described in the 'Portable Document Format Reference Manual version 1.3' section 6.10 (page 120-121)

Since: 2.0.8 (PdfDocument was package-private before)

Constructor Summary
PdfInfo()
Construct a PdfInfo-object.
PdfInfo(String author, String title, String subject)
Constructs a PdfInfo-object.
Method Summary
voidaddAuthor(String author)
Adds the name of the author to the document.
voidaddCreationDate()
Adds the date of creation to the document.
voidaddCreator(String creator)
Adds the name of the creator to the document.
voidaddkey(String key, String value)
voidaddKeywords(String keywords)
Adds some keywords to the document.
voidaddProducer()
Adds the name of the producer to the document.
voidaddSubject(String subject)
Adds the subject to the document.
voidaddTitle(String title)
Adds the title of the document.

Constructor Detail

PdfInfo

PdfInfo()
Construct a PdfInfo-object.

PdfInfo

PdfInfo(String author, String title, String subject)
Constructs a PdfInfo-object.

Parameters: author name of the author of the document title title of the document subject subject of the document

Method Detail

addAuthor

void addAuthor(String author)
Adds the name of the author to the document.

Parameters: author the name of the author

addCreationDate

void addCreationDate()
Adds the date of creation to the document.

addCreator

void addCreator(String creator)
Adds the name of the creator to the document.

Parameters: creator the name of the creator

addkey

void addkey(String key, String value)

addKeywords

void addKeywords(String keywords)
Adds some keywords to the document.

Parameters: keywords the keywords of the document

addProducer

void addProducer()
Adds the name of the producer to the document.

addSubject

void addSubject(String subject)
Adds the subject to the document.

Parameters: subject the subject of the document

addTitle

void addTitle(String title)
Adds the title of the document.

Parameters: title the title of the document