org.apache.fop.pdf

Class PDFInfo

Implemented Interfaces:
PDFWritable

public class PDFInfo
extends PDFObject

class representing an /Info object

Field Summary

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Method Summary

String
getAuthor()
Date
getCreationDate()
String
getCreator()
String
getKeywords()
Date
getModDate()
String
getProducer()
String
getSubject()
String
getTitle()
void
setAuthor(String a)
set the author string
void
setCreationDate(Date date)
void
setCreator(String creator)
set the creator string
void
setKeywords(String k)
set the keywords string
void
setModDate(Date date)
Sets the date of the last modification.
void
setProducer(String producer)
set the producer string
void
setSubject(String s)
set the subject string
void
setTitle(String t)
set the title string
byte[]
toPDF()

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF, toPDFString

Method Details

getAuthor

public String getAuthor()
Returns:
the author of the document or null if not set

getCreationDate

public Date getCreationDate()
Returns:
last set creation date

getCreator

public String getCreator()
Returns:
the creator of the document or null if not set

getKeywords

public String getKeywords()
Returns:
the keywords for the document or null if not set

getModDate

public Date getModDate()
Returns:
last modification date

getProducer

public String getProducer()
Returns:
the producer of the document or null if not set

getSubject

public String getSubject()
Returns:
the subject of the document or null if not set

getTitle

public String getTitle()
Returns:
the title string

setAuthor

public void setAuthor(String a)
set the author string
Parameters:
a - the document author

setCreationDate

public void setCreationDate(Date date)
Parameters:
date - Date to store in the PDF as creation date. Use null to force current system date.

setCreator

public void setCreator(String creator)
set the creator string
Parameters:
creator - the document creator

setKeywords

public void setKeywords(String k)
set the keywords string
Parameters:
k - the keywords for this document

setModDate

public void setModDate(Date date)
Sets the date of the last modification.
Parameters:
date - the last modification date or null if there are no modifications

setProducer

public void setProducer(String producer)
set the producer string
Parameters:
producer - the producer string

setSubject

public void setSubject(String s)
set the subject string
Parameters:
s - the document subject

setTitle

public void setTitle(String t)
set the title string
Parameters:
t - the document title

toPDF

public byte[] toPDF()
Overrides:
toPDF in interface PDFObject

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.