|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.DocumentInfo
This class is a container for the information section of a PDF document. This section contains fields such as author, title, subject, keywords, etc...
| Field Summary | |
static String |
KEY_AUTHOR
|
static String |
KEY_CREATIONDATE
|
static String |
KEY_CREATOR
|
static String |
KEY_KEYWORDS
|
static String |
KEY_MODDATE
|
static String |
KEY_PRODUCER
|
static String |
KEY_SUBJECT
|
static String |
KEY_TITLE
|
| Constructor Summary | |
DocumentInfo(int pageCount)
Document Info constructor. |
|
| Method Summary | |
Object |
clone()
Make a copy of this object. |
String |
getAuthor()
Returns the document's author. |
Date |
getCreationDate()
Returns the document's creation date. |
String |
getCreator()
Returns the document's creator. |
static DocumentInfo |
getDocumentInfo(InputStream inStream,
IPasswordHandler pwdHandler)
Static method to get the document information from a document from an InputStream. |
static DocumentInfo |
getDocumentInfo(String fileName,
IPasswordHandler pwdHandler)
Static method to get the document information from a document in a file. |
static DocumentInfo |
getDocumentInfo(URL url,
IPasswordHandler pwdHandler)
Static method to get the document information from a document from a URL. |
String |
getKeywords()
Returns the document's keywords. |
Date |
getModDate()
Returns the document's modified date. |
int |
getPageCount()
Gets the number of pages in the document. |
String |
getProducer()
Returns the document's producer. |
String |
getSubject()
Returns the document's subject. |
String |
getTitle()
Gets the document's title. |
void |
setAuthor(String author)
Set the document's author. |
void |
setCreationDate(Date creationDate)
Set the document's creation date. |
void |
setCreator(String creator)
Set the document's creator. |
void |
setKeywords(String keywords)
Set the document's keywords. |
void |
setModifiedDate(Date modDate)
Set the document's modified date. |
void |
setProducer(String producer)
Set the document's producer. |
void |
setSubject(String subject)
Set the document's subject. |
void |
setTitle(String title)
Sets the document's title. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String KEY_TITLE
public static final String KEY_AUTHOR
public static final String KEY_SUBJECT
public static final String KEY_KEYWORDS
public static final String KEY_CREATOR
public static final String KEY_PRODUCER
public static final String KEY_CREATIONDATE
public static final String KEY_MODDATE
| Constructor Detail |
public DocumentInfo(int pageCount)
pageCount - The number of pages in the document.| Method Detail |
public static DocumentInfo getDocumentInfo(String fileName,
IPasswordHandler pwdHandler)
throws PDFException
fileName - The name of the file.pwdHandler - A password handler to use in case the file is encrypted.
PDFException
public static DocumentInfo getDocumentInfo(InputStream inStream,
IPasswordHandler pwdHandler)
throws PDFException
inStream - InputStream that will be used to read the PDF document.pwdHandler - A password handler to use in case the file is encrypted.
PDFException
public static DocumentInfo getDocumentInfo(URL url,
IPasswordHandler pwdHandler)
throws PDFException
url - The url where the PDF document can be found.pwdHandler - A password handler to use in case the file is encrypted.
PDFExceptionpublic String getTitle()
public void setTitle(String title)
title - The document's title.public String getAuthor()
public String getSubject()
public String getKeywords()
public String getCreator()
public String getProducer()
public Date getCreationDate()
public Date getModDate()
public int getPageCount()
public void setAuthor(String author)
author - The document's author.public void setCreationDate(Date creationDate)
creationDate - The document's creation date.public void setCreator(String creator)
creator - The document's creator.public void setKeywords(String keywords)
keywords - The document's keywords.public void setModifiedDate(Date modDate)
modDate - The document's modified date.public void setProducer(String producer)
producer - The document's producer.public void setSubject(String subject)
subject - The document's subject.public Object clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||