Forum


Replies: 5   Views: 569
Replaceplaceholderimage does not add the image
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.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by rabol  · 16-04-2023 - 11:01

Hi

in a Word template I have ${replace_with_image}.

I then try to replace the image like this:

$image = "data:image/png;base64,...."; // all data is not included here.

$docx->replacePlaceholderImage('replace_with_image', $image);

then I convert the docx to html but the image is not shown.

other text variables is replaced in the template correctly 

Any hints ?