Replies: 2   Views: 2555
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 irishadar  · 16-05-2018 - 10:30

I always use word fragment to represent an image .
I wanted to use the "replacePlaceholderImage" function, but i coldent find in the documentation how to create the "image place holder" in the template and it doesn't work if just use the regular "$arg$".

can anybody help me?



Posted by admin  · 16-05-2018 - 12:17


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:

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:

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


Posted by irishadar  · 16-05-2018 - 13:13

Thank you ,