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....Events Acquisition GroupDocs Documentation / GroupDocs.Parser Product...Usage / Extract data from various formats / Extract data from...