org.apache.fop.pdf
Class PDFInfo
java.lang.Object
|
+--org.apache.fop.pdf.PDFObject
|
+--org.apache.fop.pdf.PDFInfo
- public class PDFInfo
- extends PDFObject
class representing an /Info object
Method Summary |
java.util.Date |
getCreationDate()
|
java.lang.String |
getTitle()
|
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 |
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 |
encode, encodeString, encodeText, formatDateTime, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, output, referencePDF, setDocument, setObjectNumber, toPDFString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFInfo
public PDFInfo()
setProducer
public void setProducer(java.lang.String producer)
- set the producer string
- Parameters:
producer
- the producer string
setCreator
public void setCreator(java.lang.String creator)
- set the creator string
- Parameters:
creator
- the document creator
getTitle
public java.lang.String getTitle()
- Returns:
- the title string
setTitle
public void setTitle(java.lang.String t)
- set the title string
- Parameters:
t
- the document title
setAuthor
public void setAuthor(java.lang.String a)
- set the author string
- Parameters:
a
- the document author
setSubject
public void setSubject(java.lang.String s)
- set the subject string
- Parameters:
s
- the document subject
setKeywords
public void setKeywords(java.lang.String k)
- set the keywords string
- Parameters:
k
- the keywords for this document
getCreationDate
public java.util.Date getCreationDate()
- Returns:
- last set creation date
setCreationDate
public void setCreationDate(java.util.Date date)
- Parameters:
date
- Date to store in the PDF as creation date. Use null to force current system date.
toPDF
public byte[] toPDF()
- Description copied from class:
PDFObject
- Encodes the object as a byte array for output to a PDF file.
- Overrides:
toPDF
in class PDFObject
- See Also:
PDFObject.toPDF()
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.