I am attaching the code in which I am merging two documents. Both documents have respective TOC.
After documents are merged: if I go to the second TOC on page# 4 and click on the index element it points to the wrong element. How can I fix this?
I tried using doc.updateFields(); but this would merge all my TOCs into a single TOC. I want to keep the TOC separate.