public class PDFInfo extends PDFObject
This class stores details of the author, the PDF generator etc. The values are accessible via the PDFDocument class.
Constructor and Description |
---|
PDFInfo()
This constructs a minimal info object
|
PDFInfo(String title) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor()
Get the value of author.
|
String |
getCreator()
PDF has two values, a Creator and a Producer.
|
String |
getKeywords()
Get the value of keywords.
|
String |
getSubject()
Get the value of subject.
|
String |
getTitle()
Get the value of title.
|
void |
setAuthor(String v)
Set the value of author.
|
void |
setCreator(String v)
Set the value of creator.
|
void |
setKeywords(String v)
Set the value of keywords.
|
void |
setSubject(String v)
Set the value of subject.
|
void |
setTitle(String v)
Set the value of title.
|
void |
write(OutputStream os)
Writes the object to the output stream.
|
getGeneration, getName, getPDFDocument, getSerialID, getType, setName, toArray, toString, writeEnd, writeStart
public PDFInfo()
public PDFInfo(String title)
title
- Title of this documentpublic String getAuthor()
public void setAuthor(String v)
v
- Value to assign to author.public String getCreator()
public void setCreator(String v)
v
- Value to assign to creator.public String getTitle()
public void setTitle(String v)
v
- Value to assign to title.public String getSubject()
public void setSubject(String v)
v
- Value to assign to subject.public String getKeywords()
public void setKeywords(String v)
v
- Value to assign to keywords.public void write(OutputStream os) throws IOException
PDFObject
Writes the object to the output stream. This method must be overidden.
Note: It should not write any other objects, even if they are it's Kids, as they will be written by the calling routine.
write
in class PDFObject
os
- OutputStream to send the object toIOException
- on error