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

NameTypeAccessDescription
fontsPdfDictionaryReadReturns the /Font sub-dictionary, or null if absent.
xObjectsPdfDictionaryReadReturns the /XObject sub-dictionary, or null if absent.
extGStatePdfDictionaryReadReturns the /ExtGState sub-dictionary, or null if absent.
colorSpacesPdfDictionaryReadReturns the /ColorSpace sub-dictionary, or null if absent.
patternsPdfDictionaryReadReturns the /Pattern sub-dictionary, or null if absent.
shadingsPdfDictionaryReadReturns the /Shading sub-dictionary, or null if absent.
propertiesPdfDictionaryReadReturns the /Properties sub-dictionary, or null if absent.
imagesXImageCollectionReadReturns the collection of image XObjects from /XObject.
formsXFormCollectionReadReturns the collection of Form XObjects from /XObject (ISO 32000-1:2008, §8.10).
pdfDictionaryPdfDictionaryReadReturns the underlying PDF dictionary.

Methods

SignatureDescription
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()PdfDictionaryReturns the /Font sub-dictionary, or null if absent.
getXObjects()PdfDictionaryReturns the /XObject sub-dictionary, or null if absent.
getExtGState()PdfDictionaryReturns the /ExtGState sub-dictionary, or null if absent.
getColorSpaces()PdfDictionaryReturns the /ColorSpace sub-dictionary, or null if absent.
getPatterns()PdfDictionaryReturns the /Pattern sub-dictionary, or null if absent.
getShadings()PdfDictionaryReturns the /Shading sub-dictionary, or null if absent.
getProperties()PdfDictionaryReturns the /Properties sub-dictionary, or null if absent.
getImages()XImageCollectionReturns the collection of image XObjects from /XObject.
getForms()XFormCollectionReturns the collection of Form XObjects from /XObject (ISO 32000-1:2008, §8.10).
getPdfDictionary()PdfDictionaryReturns the underlying PDF dictionary.

See Also

 English