I am trying to change the alignment of the image added into the docx file, but the alignment is not working. I have tried as below:
$templateProcessor->setImageValue($tag->template_tag,
array(
'path' => $filePath,
'positioning' => \PhpOffice\PhpWord\Style\Image::POSITION_ABSOLUTE,
'alignment' => \PhpOffice\PhpWord\SimpleType\Jc::END,
)
);
Though the image is rendered in exported docx file, however the image alignment is always left. How can I change the alignment of image to either center or end?



