Forum


Replies: 7   Views: 4596
Set line height and justify text in addlist
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 larrytech  · 09-03-2015 - 19:36

Just to update this thread for the benefit of anyone with a similar issue: Due to some combination and how phpdocx and Word works, the only approach you have for now is to do something such as: $docx = new CreateDocx(); $docx->importStyles('styles.docx', 'merge', array('List Style Char')); $docx->addText('Line 1', array('pStyle' => 'PredictionsListStyle')); $docx->addText('Line 2', array('pStyle' => 'PredictionsListStyle')); $docx->addText('Line 3', array('pStyle' => 'PredictionsListStyle')); $docx->addText('Line 4', array('pStyle' => 'PredictionsListStyle')); $docx->addText('Line 5', array('pStyle' => 'PredictionsListStyle')); This will create a list with your styles. For Word, the lists are paragraphs with a special style.