Estoy tratando de usar el ejemplo de de mc_table.php me genera bien las celdas el problema es que no me pinta el function Header() y function Footer() de la pagina al imprimir no me genera ningún Error

pero no me imprime la cabecera ni pie de pagina estoy utilizando CODEINGNITER.
Código PHP:
Ver original<?php
require_once APPPATH."/libraries/fpdf/mc_table.php";
//$this->load->library('fpdf/fpdf');
//require('mc_table.php');
//$this->load->library('fpdf/fpdf');
//define(‘FPDF_FONTPATH’, ‘font/’);
//define('FPDF_FONTPATH','../font/');
class PDF extends FPDF
{
//Page header
{
//Logo
// $this->Image('logo_pb.png',10,8,33);
//Arial bold 15
$this->SetTextColor(0,0,255);
$this->SetFont('Arial','B',22);
//Move to the right
$this->Cell(80);
//Title
$this->Cell(30,10,'title',0,0,'C');
//Line break
$this->Ln(10);
//Arial italic 8
$this->SetFont('Arial','I',8);
//Page number
$this->SetTextColor(0);
$this->Cell(0,10,"Seite ".$this->PageNo().'/{nb}',0,0,'R');
//Line break
$this->Ln(20);
}
//Page footer
function Footer()
{
//Position at 1.5 cm from bottom
$this->SetY(-18);
$this->Line(10,280,205,280);
//Arial italic 8
$this->SetFont('Arial','I',8);
//Page number
$this->Cell(40,10,"text",0,0);
}
}
//Instanciation of inherited class
$pdf=new PDF_MC_Table();
$pdf->Open();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Arial','',12);
////////////////////////// Tabelle //////////////////////////////////////////
$pdf->SetFont('Arial','',10);
$pdf->SetWidths(array(25,100,15,20,20)); $i=0;
while ($i<=50) {
$i++;
# code...
$pdf->Row(array("sss","sasdddddddddddddddddddddddddddddddsssssssssssddddddddddddddddddddddddddddddddddddddddsddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd","ss","ss","ss")); }
////////////////////////////////////////////////////////////////////////////////
$pdf->Output();
?>