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 FormattedFragment

    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

      • getRectangle

        public final Rectangle2D.Float getRectangle()

        Gets rectangle of the HtmlFragment

        Returns:
        java.awt.geom.Rectangle2D.Float instance
      • isBreakWords

        public final boolean isBreakWords()

        Gets or sets words break

        Returns:
        boolean value
      • setBreakWords

        public final void setBreakWords(boolean value)

        Gets or sets words break

        Parameters:
        value - boolean value
      • 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
      • getHtmlLoadOptions

        public HtmlLoadOptions getHtmlLoadOptions()

        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
      • setHtmlLoadOptions

        public void setHtmlLoadOptions(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