Forum


Replies: 12   Views: 3890
Custom list style issues
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  · 15-09-2017 - 14:06

Hello,

You just need to set the list style to the list you want to add (using embedHTML or addList methods).  The parseStyle method generates a DOCX to open it with MS Word or LibreOffice and find out the ID of each style from a DOCX (you can consider this method as a help to read with a program the existing IDs).

We recommend you to run the included sample of the parseStyle method to understand the information it returns and the sample available for the importListStyle method:

https://www.phpdocx.com/api-documentation/layout-and-general/import-list-style-from-a-Word-document-with-PHP

Regards.