|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.PDResources
public class PDResources
This represents a set of resources available at the page/pages/stream level.
Constructor Summary | |
---|---|
PDResources()
Default constructor. |
|
PDResources(COSDictionary resourceDictionary)
Prepopulated resources. |
Method Summary | |
---|---|
Map |
getColorSpaces()
This will get the map of colorspaces. |
COSDictionary |
getCOSDictionary()
This will get the underlying dictionary. |
COSBase |
getCOSObject()
Convert this standard java object to a COS object. |
Map |
getFonts()
This will get the map of fonts. |
Map |
getFonts(Map fontCache)
This will get the map of fonts. |
Map |
getGraphicsStates()
This will get the map of graphic states. |
Map |
getImages()
This will get the map of images. |
Map |
getXObjects()
This will get the map of PDXObjects that are in the resource dictionary. |
void |
setColorSpaces(Map colorspaces)
This will set the map of colorspaces. |
void |
setFonts(Map fonts)
This will set the map of fonts. |
void |
setGraphicsStates(Map states)
This will set the map of graphics states. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDResources()
public PDResources(COSDictionary resourceDictionary)
resourceDictionary
- The cos dictionary for this resource.Method Detail |
---|
public COSDictionary getCOSDictionary()
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public Map getFonts(Map fontCache) throws IOException
fontCache
- A map of existing PDFont objects to reuse.
IOException
- If there is an error getting the fonts.public Map getFonts() throws IOException
IOException
- If there is an error getting the fonts.public Map getXObjects() throws IOException
IOException
- If there is an error creating the xobjects.public Map getImages() throws IOException
IOException
- If there is an error writing the picture.public void setFonts(Map fonts)
fonts
- The new map of fonts.public Map getColorSpaces() throws IOException
IOException
- If there is an error getting the colorspaces.public void setColorSpaces(Map colorspaces)
colorspaces
- The new map of colorspaces.public Map getGraphicsStates()
public void setGraphicsStates(Map states)
states
- The new map of states.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |