Forum


Replies: 1   Views: 3677
Addlist linespacing
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 tbenbow  · 12-11-2014 - 17:31

Is it possible to control the linespacing within a list? Doesnt appear to be possible via the options keys. However, I need to force a list to single spacing (not the default 1.15x spacing).

Posted by admin  · 13-11-2014 - 11:36

Hello, The easiest approach is to create a DOCX with the that list style and use this method: /** * Imports an existing list style from an existing docx document. * * @access public * @example ../examples/easy/ImportListStyle.php * @param string $path. Must be a valid path to an existing .docx, .dotx o .docm document * @param int $id. The id of the style you want to import. You may obtain the id with the help of the parseStyle method */ public function importListStyle($path, $id, $name) Regards.