Forum


Replies: 2   Views: 3008
Replace image in template
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 businessprodesigns  · 25-02-2013 - 17:24

Hi - I have two images in a template with Alt Text as $IMAGE_1$ and $IMAGE_2$

While replacing first image with following code, I see the both the images get replaced even though the Alt tags are different.

Any help would be appreciated.

$docx->addTemplateImage('IMAGE_1', '/var/www/vhosts/demo.tradesimply.co.in/htdocs/application/controllers/checked.jpg');

Thanks
- Raj