public final class Resources extends Object
Class representing page resources.
Modifier and Type | Field and Description |
---|---|
com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary |
_ResourceDictionary |
Modifier and Type | Method and Description |
---|---|
static Resources |
create(IDocument doc,
com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary res) |
com.aspose.pdf.engine.data.IPdfDictionary |
getEngineDict() |
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) |
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()
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 create(IDocument doc, com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary res)
public 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.
Copyright © 2019 Aspose. All Rights Reserved.