Can't get rid of PHP notices in mPDF

后端 未结 3 658
不思量自难忘°
不思量自难忘° 2021-01-20 11:24

I\'m using the mPDF library to generate PDF docs directly from HTML output. The problem is that this mPDF library is written as it is and it is generating dozens of notices

3条回答
  •  天涯浪人
    2021-01-20 11:37

    If you use $mpdf->Output() after ob_end_clean(), you can even display the PDF without notices in the browser! I use this in OpenCart. But you need to use ob_start() and ob_end_clean().

提交回复
热议问题