public final class Resources extends Object
Class representing page resources.
Modifier and Type | Class and Description |
---|---|
static class |
Resources.ExtGStateValue
Represents ExtGStates with some values.
|
Modifier and Type | Method and Description |
---|---|
void |
clearImagesCache() |
com.aspose.ms.System.Collections.Generic.Dictionary<String,Resources.ExtGStateValue> |
getExtGStates()
Gets all ExGStates from resources.
|
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.
|
void |
setResourceDictionary(com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary resourceDictionary)
For internal usage only!
|
public final void clearImagesCache()
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 final com.aspose.ms.System.Collections.Generic.Dictionary<String,Resources.ExtGStateValue> getExtGStates()
Gets all ExGStates from resources.
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.
public void setResourceDictionary(com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary resourceDictionary)
resourceDictionary
- inernal instanceCopyright © 2024 Aspose. All Rights Reserved.