get_toc method

get_toc

Extracts a table of contents from the document.

Returns

A collection of table of contents items; null if table of contents extraction isn’t supported.

def get_toc(self):
    ...

Example

The following example shows how to extract table of contents from CHM file:

See Also