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 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.
The addImage doesn't support to set alt text. To do that you need to work with placeholders and the replaceVariableByWordFragment method.