To extract table of contents from Microsoft Office Word Document getToc method is used. Table of contents is generated by paragraphs with H1-H9 build-in styles.
Warning getToc method returns null value if table of contents extraction isn’t supported for the Document. For example, table of contents extraction isn’t supported for TXT files. Therefore, for TXT file getToc method returns null. If Microsoft Office Word Document has no table of contents, getToc method returns an empty collection....Assembly Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Parser Product...