【发布时间】:2015-04-20 10:18:01
【问题描述】:
我正在使用phpword和yii,这里我想生成docx文件,其中包含右上角的图像。这是我使用过的代码
$headert = $section->createHeader();
$table = $headert->addTable();
$table->addRow();
$table->addCell(4500)->addText('This is the header.');
$table->addCell(4500)->addImage('/home/dev238/projects/aegis/images/Logo_.jpg',
array('width' => 50,
'height' => 50,
'align' => 'right'));
结果是图像显示在文档内的左上部分而不是标题部分。我正在使用 LibreOffice 进行查看
【问题讨论】:
标签: phpword