Forum


Replies: 2   Views: 4019
Replace image in a template table
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  · 27-07-2016 - 07:31

Hello,

UPDATE: latest versions of phpdocx support adding WordFragments as table and list values when doing replacements.

Using the current version of phpdocx, the best approach is to do this task in two steps:

1. Add placeholders as values.

2. Use the method replaceVariableByWordFragment to replace the previous placeholders to add the images.

We're working on adding WordFragments support as values in list and table replace methods.

Regards.