Needless to say, I ran straight into the subject.
Recommended Tutorial: How PHP uses the Mpdf class to generate PDFs
1.config.php file, approximately 67 lines:
2. When to use
Note that this parameter is +ACJK, not the C parameter
And then I output Chinese.
This is for version mPDF6.0
The solution of Ps:mpdf generating Chinese garbled characters
USEADOBECJK = true; $mpdf->setautofont (Autofont_all); $mpdf->setdisplaymode (' fullpage ');//$mpdf Watermark_font = ' GB ';//$mpdf->setwatermarktext (' Chinese watermark ', 0.1); $url = ' http://www.kuitao8.com/'; $strContent = File_ Get_contents ($url);//print_r ($strContent);d ie; $mpdf->showwatermarktext = true; $mpdf->setautofont ();//$ Mpdf->sethtmlheader (' head ');//$mpdf->sethtmlfooter (' bottom '); $mpdf->writehtml ($strContent); $mpdf->output (' ss.pdf ');//$mpdf->output (' tmp.pdf ', true);//$mpdf->output (' tmp.pdf ', ' d ');//$mpdf->output (); exit; >