Forum


Replies: 4   Views: 532
Is it possible to use content control images?
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  · 02-09-2022 - 09:38

Hello,

A picture content control can include an alt text content so it can be used with replacePlaceholderImage to replace the image. Sorry, but the current stable version doesn't include a method to replace a picture content control by the title or tag value of a content control.

The modifyInputFields method only replaces input contents such as rich text content controls; so a new method should be generated for picture content controls. We have added a new task to add it in a future release of phpdocx.

Regards.