mpdf6.1以后可以用

    $mpdf=new \mPDF('zh-cn','A4','','',32,25,27,25,16,13);  
      
    $mpdf->WriteHTML("测试中文显示");  
    $mpdf->Output(); 

6.0

$this->autoLangToFont = true; 
$mpdf=new \mPDF('+aCJK','A4','','',32,25,27,25,16,13); 
$mpdf->WriteHTML($content); 
$mpdf->Output();

source: http://nbphp.com/d/16-yii-mpdf

相关文章:

  • 2021-12-03
  • 2021-12-08
  • 2021-11-23
  • 2021-11-28
  • 2021-07-17
  • 2021-05-15
  • 2021-12-17
  • 2021-12-08
猜你喜欢
  • 2021-12-09
  • 2021-07-28
  • 2021-10-09
  • 2022-01-15
  • 2021-11-19
相关资源
相似解决方案