Hello,
I am trying to get a Table of Contents from a document that begins on page 8, and spans 14 more pages to page 22.
I need to get the Table of Contents (presumably as a node?) and then extract the Section headings (the ToC has Section headings, which have headings underneath that correspond to a Table name within that section).
I would like to store the Sections and then the corresponding Headings (Table names) into an XML file or using some other way, so that I can reconstruct a new document using the same order at a later point.
I can’t find anything to do with ‘Getting ToC from Document’, or otherwise reading an entire ToC and storing it in a variable.
The ToC format is as follows:
Section 1
someTableName in section 1
someTableName in section 1
someTableName in section 1
someTableName in section 1
Section 2
someTableName in section 2
someTableName in section 2
someTableName in section 2
Etcetera.
Any help is greatly appreciated.