This article shows how to extract table of contents from Microsoft Word (DOC, DOCX etc), PDF documents and Ebooks (CHM, EPUB)....// Check if page index has a value if ( i . PageIndex == null )... GetText ( i . PageIndex . Value )) { Console . WriteLine ( reader...