Forum


Replies: 1   Views: 3225
Needs to set alternate text in addimage
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 bas van beek  · 23-02-2015 - 15:09

We are generating a document, containing the default text including images, this will be the document what we use as the template. So we are randomly generating a template. Now I need to replace the (template )image, with the new image from the system, and the alternatate text is needed, so I want the option aternate text to be set in the addimage. is this possible.

Posted by admin  · 23-02-2015 - 15:50

Hello, The addImage doesn't support to set alt text. To do that you need to work with placeholders and the replaceVariableByWordFragment method. Regards.