Skip to content
Advertisement

How to add/set images on PHPOffice/PHPWord Template?

I have an instance of a template on PHPWord. Is it possible to replace or add an image? Something like a setImageValue?

JavaScript

Is something like this possible?

Advertisement

Answer

Following code is the updated version of the one from TotPeRo (thanks again for your code!), for last phpOffice (0.11) that has evolved a little

JavaScript

Can be called with:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement