mPDF 5.7.1 - image displays as a broken [x]

后端 未结 11 1276
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 05:59

I have a small issue with mPDF (version 5.7.1).

This code should generate PDF with image file:

 $mpdf = new mPDF();
 $html = \'

        
11条回答
  •  梦谈多话
    2020-12-29 06:19

    For me, it is working as of now. Hope this will help someone.

    Solution : Try relative path of image instead of URL. Image must be hosted on the same server.

    Ex: /var/www/mysite/image/xyz.jpg

提交回复
热议问题