Php 如何在FPDF生成的每页上打印标题

Php 如何在FPDF生成的每页上打印标题,php,fpdf,Php,Fpdf,我使用FPDF从数据库生成报告,我希望报告的标题打印在生成的PDF的标题上 我的代码是这样的 function Header() { $name="Export PDF"; $this->SetFont('Arial','B',15); $this->Image('images/pdflogo.png', 5,5,60); $this->Image('images/hr1.jpg', 10,25,190); $this->Text(100,25,'$d'); $this

我使用FPDF从数据库生成报告,我希望报告的标题打印在生成的PDF的标题上

我的代码是这样的
function Header()
{
$name="Export PDF";
$this->SetFont('Arial','B',15);
$this->Image('images/pdflogo.png', 5,5,60);
$this->Image('images/hr1.jpg', 10,25,190);
$this->Text(100,25,'$d');

$this->Cell(80);

$this->SetFont('Arial','B',9);

$this->Ln(20);
}
?> 
有人能告诉我怎么做吗

使用:
$this->Cell(80,10,'示例报告标题')

它将在每个页眉上显示示例报告标题