|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.pdf.PDF
PDF is the base class for the PDf generator library
| Field Summary | |
static PDFFont |
generalFont
|
protected java.util.Vector |
objects
This vector contains each indirect object within the document |
| Constructor Summary | |
PDF()
The default constructor which constructs a PDF object with default page mode The default page mode is Catalog.USENONE |
|
PDF(int pagemode)
The constructor which constructs a PDF object with specified page mode |
|
| Method Summary | |
void |
add(PDFObject obj)
Method which adds a PDF object to the document Some objects which have kids will have their own add() method, which will call this method internally. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the property change listener |
Catalog |
getCatalog()
Method which returns the Catalog object for the PDF document Catalog is a dictionary which contains a reference to the tree of pages contained in the PDF document, a reference to the tree of objects representing the document’s outlines, etc. |
Info |
getInfo()
Method which returns the Info object for the PDF document The Info object provides information about the PDF document |
java.lang.String |
getLicenseKey()
Returns the license key of the bean |
Outlines |
getOutlines()
Method which returns the root outlines (also called a bookmark) object of the PDF document An outlines allows a user to access views of a document by name. |
Page |
getPage(int page)
This returns a specific page |
Pages |
getPages()
Method which returns the Pages object for the PDF document The Pages object contains a tree like hierarchy which defines the ordering of the pages in the PDF document |
void |
readExternal(java.io.ObjectInput in)
Implementation of the Externalizable |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the property change listener |
void |
setLicenseKey(java.lang.String licenseKey)
Methods which sets the license key |
void |
write(java.io.OutputStream os)
This writes the PDF document to an OutputStream The OutputStream is not closed, but will be flushed on completion. |
void |
writeExternal(java.io.ObjectOutput out)
Implementation of the Externalizable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector objects
public static PDFFont generalFont
| Constructor Detail |
public PDF()
public PDF(int pagemode)
pagemode - Determines how the document will present itself to the viewer when it first opens
Possible values are: Catalog.USENONE, Catalog.USEOUTLINES, Catalog.USETHUMBS, Catalog.FULLSCREEN| Method Detail |
public void add(PDFObject obj)
obj - The PDFObject to add to the documentpublic Page getPage(int page)
page - The page number to return
public Pages getPages()
public Catalog getCatalog()
public Info getInfo()
public Outlines getOutlines()
public void write(java.io.OutputStream os)
throws java.io.IOException
os - The OutputStream to write the document to
java.io.IOExceptionpublic void setLicenseKey(java.lang.String licenseKey)
public java.lang.String getLicenseKey()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - The property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - The property change listener
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException,
java.awt.IllegalComponentStateException
writeExternal in interface java.io.Externalizablejava.io.IOException
java.awt.IllegalComponentStateException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||