我是 Fpdf 库的新手,我需要从 smarty 的数据库中创建一个 pdf。我检查了数据库中的数据很好,当传递字体名称时显示以下错误
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/irmt/library/class/fpdf/fpdf.php on line 526
<b>FPDF error:</b> Undefined font: helvetica B
我的代码是
$pdf->AddPage();
$pdf->SetFont('Arial','B',14);
$pdf->FancyTable($result);
$pdf->Output();
请帮助我如何解决这个问题。谢谢