Replies: 7   Views: 306
How to get an 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  · 04-06-2020 - 15:18

Hello again,

We have tested it with MS Word 2016 and there're two fields when adding the alt text (as other MS Word versions), this is the XML output of the wp:docPr tag:

<wp:docPr descr="$VAR_DESCR_1$" id="826989436" name="" title="$VAR_TITLE_1$"/>

We think the user has added it to the Title field, not the Description one.