I want to replace the photo in the shape with the image in the filePath.
I am getting the output as in Output.png and the expected output is in ExpectedOutput.png
Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:
Your input Word document.
Please attach the image that you want to insert in the shape.
Please attach the output Word file that shows the undesired behavior.
Please attach the expected output Word file that shows the desired behavior.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip and upload them.
Thanks for sharing the detail. In your case, we suggest you please insert the textbox/rectangle shape in your input document and use the following code example to achieve your requirement. We have attached the input document with this post for your kind reference. input.zip (22.5 KB)