Aspose adds a right aligned tab if last tab is not right aligned

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.

@Hubert514
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26527

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like