A
A
alex--n2017-10-19 16:12:18
PHP
alex--n, 2017-10-19 16:12:18

How to remove image from docx via php?

Good afternoon. There is a PHPOffice plugin to generate documents using templates. To generate images in the dock, I used the overflow stack . For this code to work, it was necessary to add any picture in the Word, then find out its name through the archive and replace it. But this code only replaces current pictures with new ones. And if the user has not entered a new picture, then the old one must somehow be deleted. The question is how to find a picture in a docx file and delete it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question