Forum


Replies: 3   Views: 157
Image placeholder removal in document.
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 anushkapachpute  · 07-11-2024 - 11:45

Hello!

Actually we are working on one project in which we we are replacing images with placeholder. Here we have used dummy images as a placeholder. but in case image is not present in directory then dummy image remains as it is. So I want to remove this dummy image from document.(i have used removeTemplateVariable function, but its not working in this case, so can you suggest any other way.

 

Posted by anushkapachpute  · 08-11-2024 - 04:47

Thank you for your response. 

Actually we are using phpdocx-premium library(14.5) . In that I can't see removeTemplateVariableImage in CreateDocxFromTemplate class. is there any method available with 14.5 version?