PHPWord
在使用addImage添加图片时,可以传一个数组给第二个参数
$section = $PHPWord->createSection(array(‘orientation’ => ‘landscape’));
$section->addImage(Imglink,array(‘width’=>150,‘height’=>100));
实际效果:
PHPWord
在使用addImage添加图片时,可以传一个数组给第二个参数
$section = $PHPWord->createSection(array(‘orientation’ => ‘landscape’));
$section->addImage(Imglink,array(‘width’=>150,‘height’=>100));
实际效果: