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)
Constructor and Description |
---|
PdfInfo()
Construct a
PdfInfo -object. |
PdfInfo(String author,
String title,
String subject)
Constructs a
PdfInfo -object. |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAuthor(String author)
Adds the name of the author to the document.
|
(package private) void |
addCreationDate()
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 |
addkey(String key,
String value) |
(package private) void |
addKeywords(String keywords)
Adds some keywords to the document.
|
(package private) void |
addProducer()
Adds the name of the producer to the document.
|
(package private) void |
addSubject(String subject)
Adds the subject to the document.
|
(package private) void |
addTitle(String title)
Adds the title of the document.
|
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
PdfInfo()
PdfInfo
-object.void addTitle(String title)
title
- the title of the documentvoid addSubject(String subject)
subject
- the subject of the documentvoid addKeywords(String keywords)
keywords
- the keywords of the documentvoid addAuthor(String author)
author
- the name of the authorvoid addCreator(String creator)
creator
- the name of the creatorvoid addProducer()
void addCreationDate()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses