|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFInfo
public class PDFInfo
Represents a PDF document information dictionary /Info object. See PDF Reference, 3rd Edition, Section 9.2.1.
Field Summary |
---|
Fields inherited from class org.foray.pdf.object.PDFObject |
---|
EOL, MSG_EOL, XREF_EOL |
Constructor Summary | |
---|---|
PDFInfo(PDFDocument doc)
Create a PDFInfo instance. |
Method Summary | |
---|---|
boolean |
isEmpty()
Indicates whether this item has any content. |
void |
setAuthor(String author)
Sets the author of the document. |
void |
setCreationDate(Date creationDate)
Sets the creation data of the document. |
void |
setCreator(String creator)
Sets the creator of the document. |
void |
setKeywords(String keywords)
Sets the keywords of the document. |
void |
setModDate(Date modDate)
Sets the modification date of the document. |
void |
setProducer(String producer)
Sets the producer of the document. |
void |
setSubject(String subject)
Sets the subject of the document. |
void |
setTitle(String title)
Sets the title of the document. |
String |
toPDF()
Generates the PDF text necessary to represent the object, returning it as a String. |
Methods inherited from class org.foray.pdf.object.PDFObject |
---|
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFInfo(PDFDocument doc)
doc
- The parent PDF document.Method Detail |
---|
public void setTitle(String title)
title
- The new title for the document.public void setAuthor(String author)
author
- The new author of the document.public void setSubject(String subject)
subject
- The new subject of the document.public void setKeywords(String keywords)
keywords
- The new keywords of the document.public void setCreator(String creator)
creator
- The new creator of the document.public void setProducer(String producer)
producer
- The new producer of the document.public void setCreationDate(Date creationDate)
creationDate
- The new creation date of the document.public void setModDate(Date modDate)
modDate
- The new modification date of the document.public boolean isEmpty()
public String toPDF()
PDFObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |