com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Resources



  • public final class Resources
    extends Object

    Class representing page resources.

    • Field Detail

      • _ResourceDictionary

        public com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary _ResourceDictionary
        Internal field
    • Method Detail

      • getEngineDict

        public com.aspose.pdf.engine.data.IPdfDictionary getEngineDict()

        Internal only

        Returns:
        IPdfDictionary object
      • getForms

        public XFormCollection getForms()

        Gets Forms forms collection

        Returns:
        XFormCollection object
      • getImages

        public XImageCollection getImages()

        Gets Images images collection

        Returns:
        XImageCollection object
      • getFonts

        public FontCollection getFonts(boolean createIfAbsent)

        Returns fonts collection. If resources don't contain fonts entry it will be created in depends of CreateIfAbsent flag.

        Parameters:
        createIfAbsent - If this flag is true then fonts will be created if this entry is absent.
        Returns:
        Fonts collection.
      • getFonts

        public FontCollection getFonts()

        Gets Fonts resources collection

        Returns:
        FontCollection object
      • getResourcesFor

        public static Resources getResourcesFor(Form form)

        Gets resources for

        Parameters:
        form - Form object
        Returns:
        Resources object
      • isCommonResource

        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.

        Returns:
        boolean value