I am trying to replace a placeholder image and it is not working. Here is the code I am using:
require_once 'phpdocx/classes/CreateDocx.inc';
$docx = new CreateDocxFromTemplate('templates/test.docx');
$docx->replacePlaceholderImage('IMAGE', 'test.jpg');
$fileName=date('ymdHis');
$docx->createDocx('files/');
echo "Your document has been generated.
docx
";
And on my template, I put $IMAGE$ in the Alternative Text for the image.
The code completes and created my document, but it does not replace the placeholder image. I know the path to the replacement image is right, because if I modify it, I get an error.