We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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


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.


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.


It’s working good. Thanks for helping me.