I am using this code and it is uploading the image to the docx it functions well, but the problem the size of the image is too small I need to increase the height and width
$templateProcessor->setImageValue('image',[$image_path,['width' => 40, 'height' => 40]]); it is not working is it even possible?
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor(asset('docx/job_application.docx'));
$templateProcessor->setImageValue('image',$image_path);
$templateProcessor->saveAs('docx/'.$file_name.'.docx');
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire