$docx = new DocxUtilities();
$options = [
'image' => public_path().'/img/stamp1.png',
'height' => 40,
'width' => 250,
'decolorate' => false
];
$docx->watermarkDocx($filename.'_template.docx', $filename.'.docx', 'image', $options);
$word = new CreateDocx();
$word->addImage([
'src' => public_path().'/img/stamp.png',
'height' => 150,
'width' => 150,
'horizontalOffset' => $marginLeft,
'textWrap' => 2
]);
Find more questions by tags PHP