PHP完全自学手册(珍藏版) 中文pdf扫描版下载
useAdobeCJK = true; $mpdf->SetAutoFont(AUTOFONT_ALL); $mpdf->SetDisplayMode('fullpage'); //$mpdf->watermark_font = 'GB'; //$mpdf->SetWatermarkText('中国水印',0.1); $url = 'http://www.kuitao8.com/'; $strContent = file_get_contents($url); //print_r($strContent);die; $mpdf->showWatermarkText = true; $mpdf->SetAutoFont(); //$mpdf->SetHTMLHeader( '头部' ); //$mpdf->SetHTMLFooter( '底部' ); $mpdf->WriteHTML($strContent); $mpdf->Output('ss.pdf'); //$mpdf->Output('tmp.pdf',true); //$mpdf->Output('tmp.pdf','d'); //$mpdf->Output(); exit; ?>
转载请注明:谷谷点程序 » mpdf生成中文乱码的解决方法