Forum


Replies: 3   Views: 53
Image placeholder removal in document.

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?