Forum


Replies: 2   Views: 2867
Replaceplaceholderimage
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  · 16-05-2018 - 12:17

Hello,

To creante an image placeholder, you need to set the alternative text of the image. You can read how to do this on the practical page:

https://www.phpdocx.com/documentation/practical/pictures-and-images

In order to do this, just right click on it, open the image properties and search for the field alternate text (this name may vary in each version of Word MS). Type in this field the name of the placeholder, for example: $IMAGE$.

and the API page:

https://www.phpdocx.com/api-documentation/templates/replace-placeholder-image-Word-document

We also recommend you to check the included sample in the package that illustrates how to use the method.

Regards.