Removal of toc from docs and save it as pdf is not removing the TOC

Hi

I removed a TOC from the docs and save it as both pdf and docs. For docs, it is working fine, but for pdf, TOC is not removing from the document. Please help me to solve this problem ASAP.

@Gptrnt

Please call Document.UpdatePageLayout before saving the document to PDF. Hope this helps you.

If you still face problem, please ZIP and attach your input Word document and code example to reproduce this issue at our end. We will investigate the issue and provide you more information on it.

Hi,

It’s working good. Thanks for helping me.