Forum


Replies: 3   Views: 3530
How do i change the styling of a heading 1, heading 2, etc?
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  · 10-06-2016 - 14:31

Hello,

The addTablesOfContent method allows to set a paragraph style and custom styles, or even import an existing TOC style from a file.

And using the headingLevel property you can a text as content to appear in the TOC. This text can be styled as needed.

Regards.