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)
| Method from com.lowagie.text.pdf.PdfDocument$PdfInfo Detail: |
void addAuthor(String author) {
put(PdfName.AUTHOR, new PdfString(author, PdfObject.TEXT_UNICODE));
}
Adds the name of the author to the document. |
void addCreationDate() {
PdfString date = new PdfDate();
put(PdfName.CREATIONDATE, date);
put(PdfName.MODDATE, date);
}
Adds the date of creation to the document. |
void addCreator(String creator) {
put(PdfName.CREATOR, new PdfString(creator, PdfObject.TEXT_UNICODE));
}
Adds the name of the creator to the document. |
void addKeywords(String keywords) {
put(PdfName.KEYWORDS, new PdfString(keywords, PdfObject.TEXT_UNICODE));
}
Adds some keywords to the document. |
void addProducer() {
put(PdfName.PRODUCER, new PdfString(getVersion()));
}
Adds the name of the producer to the document. |
void addSubject(String subject) {
put(PdfName.SUBJECT, new PdfString(subject, PdfObject.TEXT_UNICODE));
}
Adds the subject to the document. |
void addTitle(String title) {
put(PdfName.TITLE, new PdfString(title, PdfObject.TEXT_UNICODE));
}
Adds the title of the document. |
void addkey(String key,
String value) {
if (key.equals("Producer") || key.equals("CreationDate"))
return;
put(new PdfName(key), new PdfString(value, PdfObject.TEXT_UNICODE));
}
|