Forum


Replies: 3   Views: 951
Toc update before save?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by dev@ram  · 18-05-2017 - 19:19

I have a question regarding the addTableContents('autoUpdate' =>true).

When we add a TOC like this, it brings up a popup when word opens the doc saying links need to be updated. Is there a way to update the TOC before we save it $docx->createDocxAndDownload() so that this popup does not come up since TOC was updated? I tried adding the code in the end before the save but that does not help either