Hi There,
We’re merging two different words documents, each document has its own TOC.
However after merging those two documents can we update the page number of the second TOC?
We’re using below code to generate TOC.
com.aspose.words.Document doc = new com.aspose.words.Document(filePath);
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertTableOfContents("\\o \"1-3\" \\h \\z \\u");
doc.updateFields();
doc.save(filePath);
Awaiting for your response.
Cheers,
Naveed Khan