Resources
Overview
Resources is a class in Aspose.PDF FOSS for Java.
Wraps a PDF resource dictionary (ISO 32000-1:2008, §7.8.3).
This class provides 12 methods for working with Resources objects in Java programs.
Available methods include: Resources, getColorSpaces, getExtGState, getFonts, getForms, getImages, getPatterns, getPdfDictionary, getProperties, getShadings, getXObjects.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: colorSpaces, extGState, fonts, forms, images, patterns, and 4 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
fonts | PdfDictionary | Read | Returns the /Font sub-dictionary, or null if absent. |
xObjects | PdfDictionary | Read | Returns the /XObject sub-dictionary, or null if absent. |
extGState | PdfDictionary | Read | Returns the /ExtGState sub-dictionary, or null if absent. |
colorSpaces | PdfDictionary | Read | Returns the /ColorSpace sub-dictionary, or null if absent. |
patterns | PdfDictionary | Read | Returns the /Pattern sub-dictionary, or null if absent. |
shadings | PdfDictionary | Read | Returns the /Shading sub-dictionary, or null if absent. |
properties | PdfDictionary | Read | Returns the /Properties sub-dictionary, or null if absent. |
images | XImageCollection | Read | Returns the collection of image XObjects from /XObject. |
forms | XFormCollection | Read | Returns the collection of Form XObjects from /XObject (ISO 32000-1:2008, §8.10). |
pdfDictionary | PdfDictionary | Read | Returns the underlying PDF dictionary. |
Methods
| Signature | Description |
|---|---|
Resources(dict: PdfDictionary) | Creates a Resources wrapper around the given PDF dictionary. |
Resources(dict: PdfDictionary, parser: PDFParser) | Creates a Resources wrapper with a PDF parser for resolving indirect references. |
getFonts() → PdfDictionary | Returns the /Font sub-dictionary, or null if absent. |
getXObjects() → PdfDictionary | Returns the /XObject sub-dictionary, or null if absent. |
getExtGState() → PdfDictionary | Returns the /ExtGState sub-dictionary, or null if absent. |
getColorSpaces() → PdfDictionary | Returns the /ColorSpace sub-dictionary, or null if absent. |
getPatterns() → PdfDictionary | Returns the /Pattern sub-dictionary, or null if absent. |
getShadings() → PdfDictionary | Returns the /Shading sub-dictionary, or null if absent. |
getProperties() → PdfDictionary | Returns the /Properties sub-dictionary, or null if absent. |
getImages() → XImageCollection | Returns the collection of image XObjects from /XObject. |
getForms() → XFormCollection | Returns the collection of Form XObjects from /XObject (ISO 32000-1:2008, §8.10). |
getPdfDictionary() → PdfDictionary | Returns the underlying PDF dictionary. |