【发布时间】:2020-01-04 09:38:17
【问题描述】:
我使用 PHPWord 生成文档。 如何删除页脚左侧的缩进,使其占据整个宽度?
对于标题,我使用:
$header = $section->addHeader();
$header->addImage('images/header.png',
array(
'width'=>600,
'height'=>72,
'marginLeft' => -75,
'positioning'=>'absolute',
'wrappingStyle'=> 'behind',
'posHorizontal' => 'absolute',
'posVertical' => 'absolute'
));
但是对于页脚它不起作用。
$footer = $section->addFooter();
$footer->addImage('images/footer.png',
array(
'width'=>600,
'height'=>72,
'marginLeft' => -75,
'positioning'=>'absolute',
'posHorizontal' => 'absolute',
'posVertical' => 'absolute',
));
第二个问题,是否可以使用 phpword 将文本放在页脚中的图像顶部?
【问题讨论】: