Forum


Replies: 1   Views: 3673
Justify list content
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 lamalama  · 01-10-2015 - 06:11

I'm trying to justify the content of a list. Everything works fine with

content, but

    or
  1. tags won't apply my style when I use the embedHTML() function in combination with a style I created via createParagraphStyle() function. $options = array( 'wordStyles' => array('

    ' => 'justifyStyle','

      ' => 'justifyStyle','
    1. ' => 'justifyStyle') );

Posted by admin  · 04-10-2015 - 08:45

Hello, We recommend you to use the importStyles method: http://www.phpdocx.com/api-documentation/layout-and-general/import-styles-from-a-Word-document-with-PHP You just need to create a DOCX with the desired style, import it using this method and use it. Regards.