Forum


Replies: 1   Views: 750
Multi-level numbered list lost in style of generated document
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@ams  · 10-01-2022 - 15:05

Hi there,

I need some help with importing styles from an external Word document. This external document has multiple styles that are attached to several levels in a custom numbered list (using "Link level to style" setting in the customised numbered list window in Word). These styles are used for generating new documents with phpdocx. The produced document indeed contains the content with the right numbered attached to the respective styles. However, only the first level in the numbered list remains attached to a style, but the other are not linked to the styles anymore. So when I re-apply such styles to any section in the document, the numbering is not included. 

So somehow, the numered list level is applied to the respective styles when generating the document, but the document itself lost the links between the numbered list levels and the styles.

What could cause this?