D
D
DocTypeMaster2020-05-10 15:36:59
PHP
DocTypeMaster, 2020-05-10 15:36:59

How to display an image in phpWord library?

I've been building a small web library for some time and need to open docx files. I already figured out the output of text / tables / lists, but I can’t master the pictures, I managed to display them even on the picture, but the problem is that they are archived, and in php I’m a little wooden, help ...

here is my code where you need to output picture

else if(get_class($e) === 'PhpOffice\PhpWord\Element\Image') {
        $body .= '........';
      }

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