mPDF8中文乱码问题的修复

传入以下参数或者修改ConfigVariables.php配置文件即可

  1. 'autoScriptToLang' => true,
  2. 'autoLangToFont' => true,
  3. 'useSubstitutions' => true,

DEMO:

  1. $mpdf = new \Mpdf\Mpdf(['mode'=>'utf-8','format'=>'A4','useSubstitutions'=>true,'useAdobeCJK'=>true,'autoScriptToLang'=>true,'autoLangToFont'=>true,'mgl'=>15,'mgr'=>15,'mgt'=>16,'mgb'=>16,'mgh'=>9,'mgf'=>9, 'orientation'=>'P']);

《mPDF8中文乱码问题的修复》上有1条评论

发表评论

邮箱地址不会被公开。 必填项已用*标注

发表评论前,请滑动滚动条解锁
三十岁