We have a file that we generated programmatically. That file has a ToC in it. When we attempt to open the file we are prompted to update fields (indicating that the dirty flag is set, AS IT SHOULD BE) If we say yes the ToC is generated and everything is great. SP (SharePoint) WAS (Word Automation Services) will update the fields and spit out a file with the ToC generated w/o the prompt. Your site indicates that Aspose SHOULD do the same but thus far our experience has been that the file either gets corrupted or the fields are not updated at all. We have tried using the nodejs example here (https://docs.aspose.cloud/words/fields/update/) with and without the dirty flag set to true and neither updates the ToC.
This begs the question, does Aspose actually support evaluating the pageRefs/page layout?