|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFInfo
public class PDFInfo
class representing an /Info object
Nested Class Summary | |
---|---|
static class |
PDFInfo.StandardKey
The standard keys in the Document Information Dictionary |
Field Summary |
---|
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
log |
Constructor Summary | |
---|---|
PDFInfo()
|
Method Summary | |
---|---|
protected static java.lang.String |
formatDateTime(java.util.Date time)
Formats a date/time according to the PDF specification. |
protected static java.lang.String |
formatDateTime(java.util.Date time,
java.util.TimeZone tz)
Formats a date/time according to the PDF specification (D:YYYYMMDDHHmmSSOHH'mm'). |
java.lang.String |
getAuthor()
|
java.util.Date |
getCreationDate()
|
java.lang.String |
getCreator()
|
java.lang.String |
getKeywords()
|
java.util.Date |
getModDate()
|
java.lang.String |
getProducer()
|
java.lang.String |
getSubject()
|
java.lang.String |
getTitle()
|
void |
put(java.lang.String key,
java.lang.String value)
Adds a custom property to this Info dictionary. |
void |
setAuthor(java.lang.String a)
set the author string |
void |
setCreationDate(java.util.Date date)
|
void |
setCreator(java.lang.String creator)
set the creator string |
void |
setKeywords(java.lang.String k)
set the keywords string |
void |
setModDate(java.util.Date date)
Sets the date of the last modification. |
void |
setProducer(java.lang.String producer)
set the producer string |
void |
setSubject(java.lang.String s)
set the subject string |
void |
setTitle(java.lang.String t)
set the title string |
byte[] |
toPDF()
Encodes the object as a byte array for output to a PDF file. |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDFString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFInfo()
Method Detail |
---|
public java.lang.String getProducer()
public void setProducer(java.lang.String producer)
producer
- the producer stringpublic java.lang.String getCreator()
public void setCreator(java.lang.String creator)
creator
- the document creatorpublic java.lang.String getTitle()
public void setTitle(java.lang.String t)
t
- the document titlepublic java.lang.String getAuthor()
public void setAuthor(java.lang.String a)
a
- the document authorpublic java.lang.String getSubject()
public void setSubject(java.lang.String s)
s
- the document subjectpublic java.lang.String getKeywords()
public void setKeywords(java.lang.String k)
k
- the keywords for this documentpublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date date)
date
- Date to store in the PDF as creation date. Use null to force current system date.public java.util.Date getModDate()
public void setModDate(java.util.Date date)
date
- the last modification date or null if there are no modificationspublic byte[] toPDF()
toPDF
in class PDFObject
protected static java.lang.String formatDateTime(java.util.Date time, java.util.TimeZone tz)
time
- date/time value to formattz
- the time zone
protected static java.lang.String formatDateTime(java.util.Date time)
time
- date/time value to format
public void put(java.lang.String key, java.lang.String value)
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |