Package com.aowagie.text.pdf
Class PdfDocument.PdfInfo
- java.lang.Object
-
- com.aowagie.text.pdf.PdfObject
-
- com.aowagie.text.pdf.PdfDictionary
-
- com.aowagie.text.pdf.PdfDocument.PdfInfo
-
- Enclosing class:
- PdfDocument
private 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)
-
-
Field Summary
-
Fields inherited from class com.aowagie.text.pdf.PdfDictionary
CATALOG, hashMap, OUTLINES, PAGE
-
Fields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addAuthor(java.lang.String author)
Adds the name of the author to the document.private void
addCreationDate()
Adds the date of creation to the document.private void
addCreationDate(java.util.Calendar globalDate)
(package private) void
addCreator(java.lang.String creator)
Adds the name of the creator to the document.(package private) void
addkey(java.lang.String key, java.lang.String value)
(package private) void
addKeywords(java.lang.String keywords)
Adds some keywords to the document.private void
addProducer()
Adds the name of the producer to the document.(package private) void
addSubject(java.lang.String subject)
Adds the subject to the document.private void
addTitle(java.lang.String title)
Adds the title of the document.-
Methods inherited from class com.aowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, remove, size, toPdf, toString
-
Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
-
-
-
Method Detail
-
addTitle
private void addTitle(java.lang.String title)
Adds the title of the document.- Parameters:
title
- the title of the document
-
addSubject
void addSubject(java.lang.String subject)
Adds the subject to the document.- Parameters:
subject
- the subject of the document
-
addKeywords
void addKeywords(java.lang.String keywords)
Adds some keywords to the document.- Parameters:
keywords
- the keywords of the document
-
addAuthor
void addAuthor(java.lang.String author)
Adds the name of the author to the document.- Parameters:
author
- the name of the author
-
addCreator
void addCreator(java.lang.String creator)
Adds the name of the creator to the document.- Parameters:
creator
- the name of the creator
-
addProducer
private void addProducer()
Adds the name of the producer to the document.
-
addCreationDate
private void addCreationDate(java.util.Calendar globalDate)
-
addCreationDate
private void addCreationDate()
Adds the date of creation to the document.
-
addkey
void addkey(java.lang.String key, java.lang.String value)
-
-