# Extract table of contents Learn how to extract table of contents (TOC) from Word documents, PDF files, and eBooks using GroupDocs.Parser for .NET. Extract TOC items with page numbers and depth le......parser/parser/methods/gettoc) method: ```csharp IEnumerable<TocItem> GetToc()...contents from CHM file: ```csharp // Create an instance of Parser...