Forum


Replies: 2   Views: 3372
Justified center not working in pro version
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 kshaikh  · 28-07-2013 - 12:09

Hi,



The justified center option isn't working in the following code:



<?php 

require_once '../phpdocxpro/classes/CreateDocx.inc';

 

$docx = new CreateDocx();



$paramsText = array(

    'font' => 'Times New Roman', 'sz' => '10'

);





$text = array();

$text[] =

            array(

            'text' => 'I am going to write', 

            'sz' => '13',

            'jc' => 'center',

            'b' => 'on'

            );

$docx->addText($text, $paramsText);



 

$docx->createDocx('../word_documents/resume');

?>



Please advice.



Thanks,



Kamal