TOC issue - " getting in TOC before name

Hello Team,

We have noticed that the Table of Contents (TOC) in the output document is displaying a quotation mark (") which is not present in the TOC of the input document.
Kindly find the input and output documents attached for your reference.
Code we are using

 Document MyDoc = new Document(@"C:\Temp\Before.docx");
 MyDoc.UpdateFields();
 MyDoc.Save(@"C:\Temp\AfterUpdateField.docx");

InputDoc.docx (107.2 KB)

OutPutDoc.docx (101.6 KB)

We would appreciate it if you could look into this at your earliest convenience.
Thank you for your support.

@pthube
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-28305

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.

Have you had a chance to review the document? Are you able to reproduce the issue? We are encountering this error exclusively with this particular document, so I would appreciate it if you could verify whether there is any problem specific to the document itself.

Please let me know your findings.

@pthube Yes, we have managed to reproduce the problem and logged the issue WORDSNET-28305 in our defect tracking system. We will keep you updated and let you know once it is resolved or we have more information for you.

I can see that in the TOC is generated using TC(Table of Contents), there is a quotation mark (“) at the start of the text of TC, but not at the end. Is this the reason for the issue?
Other document generation systems do not consider a starting quotation mark (”) and generate correct document. If we add the ending quotation mark and generate document through aspose, the result is correct, as shown below:

@pthube Yes, this might be the reason of the problem. Unfortunately, our development team has not analyzed the problem yet. Please accept our apologies for your inconvenience. We will keep you updated and let you know once it is resolved.