Forum


Replies: 4   Views: 943
How to modify image's alt text
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 admin  · 22-12-2021 - 11:52

Hello,

phpdocx 12 (https://www.phpdocx.com/news/post/phpdocx-v12-release-notes/223) added the following new option:

- New descr option in addImage to set a custom descr value instead of the image path.

to set a custom value to the descr option. As this option is available in phpdocx 12 but not in previous versions, you can test it using the trial package.

If this option is not set, the path is added. Previous versions of phpdocx add always the path to this attribute.

Regards.