http://www.fpdf.org/
https://github.com/Setasign/FPDF
https://www.ntaso.com/fpdf-and-chinese-characters/
<?php
// 1.8.1
//define("FPDF_FONTPATH","font/");
try
{
require("../fpdf.php");
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont("Arial","B",16);
$pdf->Cell(40,10,"Hello World! 涂聚文"); //中文乱码
$pdf->Output();
}
catch(Exception $ex)
{
echo($ex->getMessage());
}
?>
原文:https://www.cnblogs.com/geovindu/p/9543857.html