class PDF extends FPDF { //Constructor (mandatory for PHP3) function PDF() { $this->FPDF(); } //Page footer function Footer() { //Go to 1.5 cm from bottom $this->SetY(-15); //Select Arial italic 8 $this->SetFont('Arial','I',8); //Print centered page number $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); } } |