I was requested to build a service which should add a very customized TOC to existing Word documents. Those documents already have an empty space (2nd page), and TOC should be added to that page.
Documents already have TC entry fields as well.
Using Aspose.Words, Is it possible to
- get all the existing TC Entry fields in a document
- get their page numbers
- create a “manual” TOC using the selected ones (i.e. level 1 only, level 1 and 2, and so on)
By “manual” I mean not using a TOC field, rather simply adding properly formatted lines with page numbers