phpword addText() align justify -


when use addtext() works fine align=center, left or right, when try use align=justify script works without problems, when try open .docx file gives me error , file not openning.

it appreciated if knows solution.

$text = "some text"; $phpword->addfontstyle('r2style', array('bold'=>false, 'italic'=>false, 'size'=>12)); $phpword->addparagraphstyle('p2style', array('align'=>'center', 'spaceafter'=>100)); $section->addtext($text, 'r2style', 'p2style'); 

try change 'align'=>'left' 'align'=>'both'

$text = "some text"; $phpword->addfontstyle('r2style', array('bold'=>false, 'italic'=>false, 'size'=>12)); $phpword->addparagraphstyle('p2style', array('align'=>'both', 'spaceafter'=>100)); $section->addtext($text, 'r2style', 'p2style'); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -