Du skal angive tabeloverskrift inde i funktion Header(), før $pdf->AddPage();
Prøv noget som dette:
<?php
class h4PDF extends FPDF{
function Header(){
$this->Image('../../images/logo.png', 10,6,30);
$this->SetFont('Arial', 'B', 12);
$this->Cell(80);
$this->Cell(50, 10, 'Total Spent Time', 0, 0,'C');
$this->Ln(10);
$this->SetX(70);
$this->Cell(40,6,'User Name',1,0,'C',1);
$this->SetX(105);
$this->SetX(110);
$this->Cell(42,6,'Total Spent Time',1,0,'C',1);
$this->Ln();
}
}
?>