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
Post a Comment