public class PDResources extends Object implements COSObjectable
Constructor and Description |
---|
PDResources()
Default constructor.
|
PDResources(COSDictionary resourceDictionary)
Prepopulated resources.
|
Modifier and Type | Method and Description |
---|---|
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.
|
PDPropertyList |
getProperties()
Returns the dictionary mapping resource names to property list dictionaries for marked
content.
|
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.
|
void |
setProperties(PDPropertyList props)
Sets the dictionary mapping resource names to property list dictionaries for marked
content.
|
public PDResources()
public PDResources(COSDictionary resourceDictionary)
resourceDictionary
- The cos dictionary for this resource.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.public PDPropertyList getProperties()
public void setProperties(PDPropertyList props)
props
- the property listCopyright © 2002-2012 Apache Software Foundation. All Rights Reserved.