com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class TableOfContentsItem



  • public final class TableOfContentsItem
    extends Object

    Provides the item of table of contents.

    • Method Detail

      • getText

        public String getText()

        Gets a text of the item.

        Returns:
        A string that represents a text of the item.
      • getPageIndex

        public Integer getPageIndex()

        Gets a page index of the item.

        Returns:
        The page index of the text. Null if it is just a node without content.
      • getCount

        public int getCount()

        Gets a count of sub-items.

        Returns:
        The number of sub-items. Zero if the item hasn't sub-items.
      • get_Item

        public TableOfContentsItem get_Item(int index)

        Gets a sub-item of the item.

        Parameters:
        index - The index of the sub-item.
        Returns:
        The sub-item of the item.
      • extractPage

        public String extractPage()

        Extracts all characters from the page with pageIndex and returns the data as a string.

        Returns:
        A string that contains all characters from the page.