mpdf not supporting arabic and chinese fonts

后端 未结 5 1775
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 16:57

I am using mpdf. When I supplied the arabic and chinese words to the WriteHtml(), the resulting pdf containing square boxes instead of those fonts.

Please suggest!

5条回答
  •  悲&欢浪女
    2020-12-31 17:14

    You need to enable the support of PDF Asian font like this:

    $pdf = $this->pdf->load();
    $pdf->useAdobeCJK = true;
    $pdf->SetAutoFont(AUTOFONT_ALL);
    

提交回复
热议问题