Replies: 2   Views: 1813
Phpdocx_image issue
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by pwctechnicalsecurity  · 19-10-2019 - 22:33

I am using the EmbedHTML functionality. The following works:

<p><img width='660' src='file:///XXX/public/uploads/images/xx.png'></p>

However, the following does not work:

<phpdocx_image width='660' src='file:///XXX/public/uploads/images/xx.png'/>

What am I missing? As I am using Laravel, can I also include images relative to /index.php?
How can I center the image? Setting imageAlign='center' on phpdocx_image did not seem to work.