public final class Resources extends Object
Class representing page resources.
Modifier and Type | Field and Description |
---|---|
com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary |
_ResourceDictionary
Internal field
|
Modifier and Type | Method and Description |
---|---|
com.aspose.pdf.engine.data.IPdfDictionary |
getEngineDict()
Internal only
|
FontCollection |
getFonts()
Gets
Fonts resources collection
|
FontCollection |
getFonts(boolean createIfAbsent)
Returns fonts collection.
|
XFormCollection |
getForms()
Gets
Forms forms collection
|
XImageCollection |
getImages()
Gets
Images images collection
|
static Resources |
getResourcesFor(Form form)
Gets resources for
|
boolean |
isCommonResource()
True if this resources are common i.e. are shared for several pages (placed in pages
dictionary or in every page as object reference) Manipulation with common resources must be
performed very carefully for example deleting object form common resources in one page may
cause errors on other pages if deleted object was used for other pages.
|
public com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary _ResourceDictionary
public com.aspose.pdf.engine.data.IPdfDictionary getEngineDict()
Internal only
public XFormCollection getForms()
Gets Forms
forms collection
public XImageCollection getImages()
Gets Images
images collection
public FontCollection getFonts(boolean createIfAbsent)
Returns fonts collection. If resources don't contain fonts entry it will be created in depends of CreateIfAbsent flag.
createIfAbsent
- If this flag is true then fonts will be created if this entry is absent.public FontCollection getFonts()
Gets Fonts
resources collection
public static Resources getResourcesFor(Form form)
Gets resources for
form
- Form objectpublic boolean isCommonResource()
True if this resources are common i.e. are shared for several pages (placed in pages dictionary or in every page as object reference) Manipulation with common resources must be performed very carefully for example deleting object form common resources in one page may cause errors on other pages if deleted object was used for other pages.