【发布时间】:2018-09-29 13:37:31
【问题描述】:
目前我正在努力解决phpword文本框中的对齐问题
我无法执行左对齐、右对齐和居中。
$textbox =
$section->addTextBox(
array(
'alignment' => \PhpOffice\PhpWord\SimpleType\Jc::CENTER,
'width' => 460,
'height' => 100,
'borderSize' => 1,
'borderColor' => '000',
)
);
$textbox->addText("Form No. SH-1", array('align'=>'center'));
$textbox->addText('SHARE CERTIFICATE.', $fontStyle2);
$cell = $textbox->addTable()->addRow()->addCell();
$cell->addText('Pursuant to sub-section 3 of section 46 of the Companies Act, 2013 and rule 5-2 of the Companies Share Capital and Debenture Rules, 2014', $fontStyle2);
如果有人知道,我需要将上面的文字放在中心,让我知道
【问题讨论】: