Hi,
Let me explain the issue based on the sample document attached :
TestDoc.docx (13,4 Ko)
My sample document has a TOC and needs to align the page numbers by the left side with no leader.
Some tabs are set in the “TOC 1” style for this, the last one being at 6.5”, left align, no leader.
When rebuilding the TOC (.UpdatePageLayout()/.UpdateFields()), Aspose creates a new tab right aligned at 6.49” with dot leaders in the TOC entries, overriding the 6.5" tab from the style. Word does not create such a tab. It appears that Aspose does this only if last tab is not right aligned.