doc.updateFields(), you have to manually update the entire directory after opening word. Moreover, the table of contents is inconsistent with the first-level heading, and there should be two spaces between the serial n…...to see two spaces like in the list alexey.noskov March 28, 2025...Document(); com.aspose.words.List list = doc.getLists().add(ListTemplate...