Forum


Replies: 7   Views: 4154
Table of contents : how to ?
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 admin  · 27-04-2016 - 17:07

Hello,

The addTableContents method allows to add a TOC in documents created from scratch. If you need a TOC when you use a template, you just need to add it in the DOCX when you create the template using Word, LibreOffice, OpenOffice...

Or as explained previously, you can use the MutiMerge class to merge a template with a TOC create from scratch.

Regards.