Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
Hello,
This code:
$docx->addTemplateVariable($field2,$imagepath,’html’);
allows you replace a placeholder using HTML code. You should use:
$docx->addTemplateVariable($field2,$imagepath,’image’);
that transform the image to MHT, or replaceTemplateVariableByHTML method using an img tag.
Regards.