![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
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); $i=0; while ($i<=50) { $i++; # code... $pdf->Row(array("sss","sasdddddddddddddddddddddddddddddddsssssssssssddddddddddddddddddddddddddddddddddddddddsddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd","ss","ss","ss")); } //////////////////////////////////////////////////////////////////////////////// $pdf->Output(); ?>