Forum


Replies: 7   Views: 4772
Create toc when use a template
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  · 12-02-2015 - 10:35

Hello, You could: · Use the method addHeading to add a new heading · Import the existing styles in a DOCX with importStyles · Get the ID of your styles with the method parseStyles, and use it with the pStyle parameter of addText · Use the headingLevel parameter of addText to set the heading level Regards.