mPDF not rendering images (mPDF error: IMAGE Error Could not find image file)

后端 未结 6 1362
执笔经年
执笔经年 2020-12-17 22:39

We are getting plagued with this which started in April on working server. Everything was fine with our application until the customer reported that PDFs were no longer dis

6条回答
  •  别那么骄傲
    2020-12-17 23:20

    I had a similar issue and I solve by following:

    1.Check if gd library is installed and enable in your php ini file. If not install gd library.

    2.Turn on debug variable

    $mpdf = new mPDF();    
    $mpdf->showImageErrors = true;
    

    3.Try inter-changing absolute/relative path for the image

    
    
    

    Hope this helps.

提交回复
热议问题