mPDF 5.7.1 - image displays as a broken [x]

后端 未结 11 1286
没有蜡笔的小新
没有蜡笔的小新 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:23

    change to remove the second line before initializing $html its undefined at that time. new code will be as

    $mpdf = new mPDF();
    $html= "";
    $mpdf->WriteHTML($html);
    $mpdf->debug = true; 
    $output = $mpdf->Output(); 
    exit();
    

提交回复
热议问题