Hi,
I am new to Aspose service. I am getting wrong Table of Contents when I call UpdateFields() method.
I am passing the path of WordML xml document in constructor of Aspose.Words.Document class. Its object contains all my contents which is in the document. After that when I call UpdateFields() method, I am getting Wrong table of contents. Below is my code.
// Load the file for conversion. Document doc = new Document(inputPath);doc.UpdateFields(); doc.UpdatePageLayout(); <span style="color: green;">// Save the document to PDF format.</span> doc.Save(outputPath, <span style="color: rgb(43, 145, 175);">SaveFormat</span>.Pdf);</pre><pre style="background: white; color: black; font-family: Consolas; font-size: 13px;"> Using 11.6.0.0 version</pre><pre style="background: white; color: black; font-family: Consolas; font-size: 13px;">How aspose service decides that particular node will come in Table of contents. I am getting wrong table of contents means I am getting only one node in table of content but the original document contains more then 30 TOC.</pre><pre style="background: white; color: black; font-family: Consolas; font-size: 13px;">Thanks in advance</pre>