Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel » [javadoc | source]
org.apache.pdfbox.pdmodel
public class: PDResources [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.PDResources

All Implemented Interfaces:
    COSObjectable

This represents a set of resources available at the page/pages/stream level.
Constructor:
 public PDResources() 
 public PDResources(COSDictionary resourceDictionary) 
    Prepopulated resources.
    Parameters:
    resourceDictionary - The cos dictionary for this resource.
Method from org.apache.pdfbox.pdmodel.PDResources Summary:
getCOSDictionary,   getCOSObject,   getColorSpaces,   getFonts,   getFonts,   getGraphicsStates,   getImages,   getXObjects,   setColorSpaces,   setFonts,   setGraphicsStates
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.PDResources Detail:
 public COSDictionary getCOSDictionary() 
    This will get the underlying dictionary.
 public COSBase getCOSObject() 
    Convert this standard java object to a COS object.
 public Map getColorSpaces() throws IOException 
    This will get the map of colorspaces. This will return null if the underlying resources dictionary does not have a colorspace dictionary. The keys are string and the values are PDColorSpace objects.
 public Map getFonts() throws IOException 
    This will get the map of fonts. This will never return null. The keys are string and the values are PDFont objects.
 public Map getFonts(Map fontCache) throws IOException 
    This will get the map of fonts. This will never return null. The keys are string and the values are PDFont objects.
 public Map getGraphicsStates() 
    This will get the map of graphic states. This will return null if the underlying resources dictionary does not have a graphics dictionary. The keys are the graphic state name as a String and the values are PDExtendedGraphicsState objects.
 public Map getImages() throws IOException 
    This will get the map of images. An empty map will be returned if there are no underlying images. So far the keys are COSName of the image and the value is the corresponding PDXObjectImage.
 public Map getXObjects() throws IOException 
    This will get the map of PDXObjects that are in the resource dictionary.
 public  void setColorSpaces(Map colorspaces) 
    This will set the map of colorspaces.
 public  void setFonts(Map fonts) 
    This will set the map of fonts.
 public  void setGraphicsStates(Map states) 
    This will set the map of graphics states.