com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class HtmlFragment

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable


    public final class HtmlFragment
    extends BaseParagraph

    Represents html fragment.

    • Constructor Detail

      • HtmlFragment

        public HtmlFragment(String text)

        Initializes a new instance of the HtmlFragment class.

        Parameters:
        text - The fragment text
    • Method Detail

      • getTextState

        public TextState getTextState()

        Gets or sets font

        Returns:
        TextState object
      • setTextState

        public void setTextState(TextState value)

        Gets or sets font

        Parameters:
        value - TextState object
      • getHtmlLoadOptionsOfInstance

        public HtmlLoadOptions getHtmlLoadOptionsOfInstance()

        Gets HtmlLoadOptions that will be used for loading (and rendering) of HTML into this instance of class. Please use it when it's necessary use specific setting for import of HTML for this or that instance (f.e when this or that instance should use specific BasePath for imported HTML or should use specific loader of external resources) If parameter is default (null), then standard HTML loading options will be used.

        Returns:
        HtmlLoadOptions value
      • setHtmlLoadOptionsOfInstance

        public void setHtmlLoadOptionsOfInstance(HtmlLoadOptions value)

        Sets HtmlLoadOptions that will be used for loading (and rendering) of HTML into this instance of class. Please use it when it's necessary use specific setting for import of HTML for this or that instance (f.e when this or that instance should use specific BasePath for imported HTML or should use specific loader of external resources) If parameter is default (null), then standard HTML loading options will be used.

        Parameters:
        value - HtmlLoadOptions value
      • deepClone

        public Object deepClone()
        Clones this instance
        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Overrides:
        deepClone in class BaseParagraph
        Returns:
        Clonned object