Forum


Replies: 2   Views: 1470
Replaceplaceholderimage not insert 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 dev-info  · 07-07-2020 - 14:21

hi,

i tried to replace variable $IMAGE$ by our image COR.jpg, but nothing append.

In the docx , stay $IMAGE$

my code:

        $path_signature =  "C:\\wamp64\\test\\COR.jpg";

        $docx = new Phpdocx\Create\CreateDocxFromTemplate("C:\\wamp64\\test\\test\\BE.docx");

        $docx->replacePlaceholderImage('IMAGE', $path_signature);

        $docx->createDocx("C:\\wamp64\\test\\BE.docx");

 

Can you help me? thank you