Package com.lowagie.text.pdf
Class PdfDocument.PdfInfo
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfDocument.PdfInfo
- Enclosing class:
PdfDocument
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Adds the name of the author to the document.(package private) void
Adds the date of creation to the document.(package private) void
addCreator
(String creator) Adds the name of the creator to the document.(package private) void
(package private) void
addKeywords
(String keywords) Adds some keywords to the document.(package private) void
Adds the modification date (=current date and time) to the document.(package private) void
addModificationDate
(PdfDate date) Adds the modification date to the document.(package private) void
Adds the name of the producer to the document.(package private) void
addProducer
(String producer) Adds the name of the producer to the document.(package private) void
addSubject
(String subject) Adds the subject to the document.(package private) void
Adds the title of the document.Methods inherited from class com.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
Methods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Constructor Details
-
PdfInfo
PdfInfo()Construct aPdfInfo
-object. -
PdfInfo
Constructs aPdfInfo
-object.- Parameters:
author
- name of the author of the documenttitle
- title of the documentsubject
- subject of the document
-
-
Method Details
-
addTitle
Adds the title of the document.- Parameters:
title
- the title of the document
-
addSubject
Adds the subject to the document.- Parameters:
subject
- the subject of the document
-
addKeywords
Adds some keywords to the document.- Parameters:
keywords
- the keywords of the document
-
addAuthor
Adds the name of the author to the document.- Parameters:
author
- the name of the author
-
addCreator
Adds the name of the creator to the document.- Parameters:
creator
- the name of the creator
-
addProducer
void addProducer()Adds the name of the producer to the document. -
addProducer
Adds the name of the producer to the document.- Parameters:
producer
- name of the producer
-
addCreationDate
void addCreationDate()Adds the date of creation to the document. -
addModificationDate
void addModificationDate()Adds the modification date (=current date and time) to the document. -
addModificationDate
Adds the modification date to the document. -
addkey
-