mardi 1 octobre 2019

how to set height and width to image uploaded using setImageValue in phpword?

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');


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2nkjWmZ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire