TocItem class

TocItem class

Represents the item which is used in the table of contents extraction functionality.

An instance of TocItem class is used as return value of Parser.get_toc methods. See the usage examples there.

The TocItem type exposes the following members:

Constructors

Constructor Description
init Initializes a new TocItem instance.

Methods

Method Description
extract_text Extracts a text from the document to which TocItem object refers.

Properties

Property Description
depth The depth level of the item.
page_index The page index of the item.
text The text of the item.

See Also