com.etymon.pj.object
Class PjCatalog
java.lang.Object
com.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjDictionary
com.etymon.pj.object.PjCatalog
- All Implemented Interfaces:
- java.lang.Cloneable
public class PjCatalog
- extends PjDictionary
A representation of a PDF Catalog dictionary.
Constructor Summary |
PjCatalog()
Creates a new Catalog dictionary. |
PjCatalog(java.util.Hashtable h)
Creates a Catalog dictionary as a wrapper around a Hashtable. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PjCatalog
public PjCatalog()
- Creates a new Catalog dictionary.
PjCatalog
public PjCatalog(java.util.Hashtable h)
- Creates a Catalog dictionary as a wrapper around a Hashtable.
- Parameters:
h
- the Hashtable to use for this dictionary.
setPages
public void setPages(PjReference pages)
getPages
public PjObject getPages()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setOutlines
public void setOutlines(PjReference outlines)
getOutlines
public PjObject getOutlines()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setPageMode
public void setPageMode(PjName pageMode)
setPageMode
public void setPageMode(PjReference pageMode)
getPageMode
public PjObject getPageMode()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setOpenAction
public void setOpenAction(PjArray openAction)
setOpenAction
public void setOpenAction(PjDictionary openAction)
setOpenAction
public void setOpenAction(PjReference openAction)
getOpenAction
public PjObject getOpenAction()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setThreads
public void setThreads(PjReference threads)
getThreads
public PjObject getThreads()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setDests
public void setDests(PjReference dests)
getDests
public PjObject getDests()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setNames
public void setNames(PjDictionary names)
setNames
public void setNames(PjReference names)
getNames
public PjObject getNames()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setURI
public void setURI(PjDictionary uri)
setURI
public void setURI(PjReference uri)
getURI
public PjObject getURI()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setAA
public void setAA(PjDictionary aa)
setAA
public void setAA(PjReference aa)
getAA
public PjObject getAA()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setViewerPreferences
public void setViewerPreferences(PjDictionary viewerPreferences)
setViewerPreferences
public void setViewerPreferences(PjReference viewerPreferences)
getViewerPreferences
public PjObject getViewerPreferences()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setAcroForm
public void setAcroForm(PjDictionary acroForm)
setAcroForm
public void setAcroForm(PjReference acroForm)
getAcroForm
public PjObject getAcroForm()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
isLike
public static boolean isLike(PjDictionary dictionary)
- Examines a dictionary to see if it is a PDF Catalog object.
- Parameters:
dictionary
- the dictionary to examine.
- Returns:
- true if the dictionary could be interpreted as a
valid PjCatalog 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.