Resources
Overview
Resources is a class in Aspose.Pdf FOSS for Java.
Wraps a PDF resource dictionary (ISO 32000-1:2008, §7.8.3).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
fonts | COSDictionary | Read | Returns the /Font sub-dictionary, or null if absent. |
xObjects | COSDictionary | Read | Returns the /XObject sub-dictionary, or null if absent. |
extGState | COSDictionary | Read | Returns the /ExtGState sub-dictionary, or null if absent. |
colorSpaces | COSDictionary | Read | Returns the /ColorSpace sub-dictionary, or null if absent. |
patterns | COSDictionary | Read | Returns the /Pattern sub-dictionary, or null if absent. |
shadings | COSDictionary | Read | Returns the /Shading sub-dictionary, or null if absent. |
properties | COSDictionary | Read | Returns the /Properties sub-dictionary, or null if absent. |
images | XImageCollection | Read | Returns the collection of image XObjects from /XObject. |
cOSDictionary | COSDictionary | Read | Returns the underlying COS dictionary. |
Methods
| Signature | Description |
|---|---|
Resources(dict: COSDictionary) | Creates a Resources wrapper around the given COS dictionary. |
Resources(dict: COSDictionary, parser: PDFParser) | Creates a Resources wrapper with a PDF parser for resolving indirect references. |
getFonts() → COSDictionary | Returns the /Font sub-dictionary, or null if absent. |
getXObjects() → COSDictionary | Returns the /XObject sub-dictionary, or null if absent. |
getExtGState() → COSDictionary | Returns the /ExtGState sub-dictionary, or null if absent. |
getColorSpaces() → COSDictionary | Returns the /ColorSpace sub-dictionary, or null if absent. |
getPatterns() → COSDictionary | Returns the /Pattern sub-dictionary, or null if absent. |
getShadings() → COSDictionary | Returns the /Shading sub-dictionary, or null if absent. |
getProperties() → COSDictionary | Returns the /Properties sub-dictionary, or null if absent. |
getImages() → XImageCollection | Returns the collection of image XObjects from /XObject. |
getCOSDictionary() → COSDictionary | Returns the underlying COS dictionary. |