com.etymon.pj.object
Class PjPage
java.lang.Object
com.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjDictionary
com.etymon.pj.object.PjPagesNode
com.etymon.pj.object.PjPage
- All Implemented Interfaces:
- java.lang.Cloneable
public class PjPage
- extends PjPagesNode
A representation of a PDF page dictionary.
Constructor Summary |
PjPage()
Creates a new page dictionary. |
PjPage(java.util.Hashtable h)
Creates a page dictionary as a wrapper around a Hashtable. |
Methods inherited from class com.etymon.pj.object.PjPagesNode |
getAA, getCropBox, getDur, getHid, getMediaBox, getParent, getResources, getRotate, getTrans, setAA, setAA, setCropBox, setCropBox, setDur, setDur, setHid, setHid, setMediaBox, setMediaBox, setParent, setResources, setResources, setRotate, setRotate, setTrans, setTrans |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PjPage
public PjPage()
- Creates a new page dictionary.
PjPage
public PjPage(java.util.Hashtable h)
- Creates a page dictionary as a wrapper around a Hashtable.
- Parameters:
h
- the Hashtable to use for this dictionary.
setContents
public void setContents(PjArray contents)
setContents
public void setContents(PjReference contents)
getContents
public PjObject getContents()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setThumb
public void setThumb(PjReference thumb)
getThumb
public PjReference getThumb()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setAnnots
public void setAnnots(PjArray annots)
setAnnots
public void setAnnots(PjReference annots)
getAnnots
public PjObject getAnnots()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setB
public void setB(PjArray b)
setB
public void setB(PjReference b)
getB
public PjObject getB()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
isLike
public static boolean isLike(PjDictionary dictionary)
- Examines a dictionary to see if it is a PDF page.
- Parameters:
dictionary
- the dictionary to examine.
- Returns:
- true if the dictionary could be interpreted as a
valid PjPage object.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Returns a deep copy of this object.
- Overrides:
clone
in class PjDictionary
- Returns:
- a deep copy of this object.
- Throws:
java.lang.CloneNotSupportedException
- if the instance can not be cloned.