我正在使用此代码,并且它将图像上传到功能良好的docx,但问题是图像的尺寸太小,我需要增加高度和宽度
$ templateProcessor-> setImageValue('image',[$ image_path,['width'=>'height'=> 40]]));它不起作用有可能吗?
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor(asset('docx/job_application.docx'));
$templateProcessor->setImageValue('image',$image_path);
$templateProcessor->saveAs('docx/'.$file_name.'.docx');
在您的模板中,将书签设置为$ [image:450:334}