com.groupdocs.editor.options

Class TextToHtmlOptions

    • Constructor Detail

      • TextToHtmlOptions

        public TextToHtmlOptions()
    • Method Detail

      • getDetectNumberingWithWhitespaces

        public final boolean getDetectNumberingWithWhitespaces()

        Allows to specify how numbered list items are recognized when document is imported from plain text format. The default value is true.


        If this option is set to false, lists recognition algorithm detects list paragraphs, when list numbers ends with either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o"). If this option is set to true, whitespaces are also used as list number delimeters: list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.
        Returns:
      • getEnablePagination

        public boolean getEnablePagination()

        Determines whether it is required to split resultant HTML markup per pages (true) or not (false)

      • getEncoding

        public Charset getEncoding()

        Character encoding of the text document, which will be applied for its opening

      • getLeadingSpacesOptions

        public final int getLeadingSpacesOptions()

        Gets or sets preferred option of a leading space handling. By default converts leading spaces to the left indent.

      • getTrailingSpacesOptions

        public final int getTrailingSpacesOptions()

        Gets or sets preferred option of a trailing space handling. By default truncates all trailing spaces.

      • isValid

        public Boolean isValid()
      • setDetectNumberingWithWhitespaces

        public final void setDetectNumberingWithWhitespaces(boolean value)

        Allows to specify how numbered list items are recognized when document is imported from plain text format. The default value is true.


        If this option is set to false, lists recognition algorithm detects list paragraphs, when list numbers ends with either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o"). If this option is set to true, whitespaces are also used as list number delimeters: list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.
        Parameters:
        value -
      • setEnablePagination

        public void setEnablePagination(boolean value)

        Determines whether it is required to split resultant HTML markup per pages (true) or not (false)

      • setEncoding

        public void setEncoding(Charset value)

        Character encoding of the text document, which will be applied for its opening

      • setLeadingSpacesOptions

        public final void setLeadingSpacesOptions(int value)

        Gets or sets preferred option of a leading space handling. By default converts leading spaces to the left indent.

      • setTrailingSpacesOptions

        public final void setTrailingSpacesOptions(int value)

        Gets or sets preferred option of a trailing space handling. By default truncates all trailing spaces.