Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/05/2013, 11:49
franjgg
 
Fecha de Ingreso: marzo-2007
Mensajes: 751
Antigüedad: 17 años, 1 mes
Puntos: 4
FPDF no pone el footer

Hola como estais amigos,

Vereis estoy usando FPDF para crear un pdf y enviarlo esto lo hace bien el problema es que estoy intentnado poner un footer pero no se por que no lo pone, he leido la documentacion pero nada, no se que puede estar pasando.

A ver si alguien ve algo raro:

Código PHP:
       require('pdf/fpdf.php');

        
$pdf=new FPDF();

        
$pdf->AddPage();

        
$pdf->SetFont('Arial','B',23);

        

        

        


    

        

                            
$pdf->SetFont('Arial','B',16);

                            
$escudo 'imagenes/logo_email.jpg'

                            
$pdf->Image($escudo,15,8,70);

                               
$pdf->Ln(9);        

        

                            
$pdf->SetFont('Arial','B',11);



        

                            
$anio utf8_decode('TECNO');        

                            
$pdf->Cell(30,30,$anio,110);

                            
$pdf->SetTextColor(0,1,0);

                               
$pdf->Ln(6);

                               


                               
$pdf->SetFont('Arial','B',18);

                            
$fecha_de_pago3 utf8_decode('FACTURA');

                            
$pdf->Cell(170,20,$fecha_de_pago3,0,0,'R');

                               
$pdf->Ln(6);








                            
$pdf->SetFont('Arial','B',11);

                            
$anio 'CIF: '.utf8_decode('');        

                            
$pdf->Cell(10,20,$anio,110);

                            
$pdf->SetTextColor(0,1,0);

                            
$pdf->Ln(16);


                            
$pdf->SetFont('Arial','B',8);

                            
$Dirección utf8_decode('Dirección: Parque Científico-Tecnológico');

                            
$pdf->MultiCell(150,3$Dirección);
                            
$pdf->SetFont('','');
                            
$pdf->Cell(165,1,'FECHA: 31/05/2013',0,0,'R');

                            
$pdf->Ln(2);    

                            
$calle utf8_decode('C/  Payne. Edif.  2.2');
                            
$factura utf8_decode('FACTURA Nº:');
                            
$pdf->MultiCell(150,3,$calle );
                            
$pdf->SetFont('','');
                            
$pdf->Cell(158,1,$factura,0,0,'R');    
                  
                                    
$pdf->Ln(2);

                            
$postal utf8_decode('C.P. ');

                            
$pdf->MultiCell(150,3,$postal);
                            
$pdf->SetFont('','');
                            
$pdf->Cell(149,1,'PAGO:',0,0,'R');          

                                    
$pdf->Ln();
  
                            

                             
$fecha_de_pago3 utf8_decode('Teléfono: 987 346 215');

                            
$pdf->Cell(0,6,$fecha_de_pago3,0);

                            
$pdf->Ln(7);  




                            
$pdf->SetLineWidth(0.4);
                            
                            
$pdf->Line(117020070);
                                        
                             
$pdf->Ln(6);



                            
$postal utf8_decode('CLIENTE Nº: ');

                            
$pdf->MultiCell(150,1,$postal);
                            
$pdf->SetFont('','');
                            
$pdf->Cell(185,1,'Cuenta para transferencia bancaria:',0,0,'R');  


                            
$pdf->Ln(6);


                            
$postal utf8_decode('Razón Social:');

                            
$pdf->MultiCell(150,1,$postal);
                            
$pdf->SetFont('','');
                            
$pdf->Cell(175,1,'wdwedwedwedwed:',0,0,'R');  


                            
$pdf->Ln(4);  


                            
$postal utf8_decode('C.I.F.:');

                            
$pdf->MultiCell(150,1,$postal);
                            
$pdf->SetFont('','');
                            
$pdf->Cell(166,1,'wedwedw',0,0,'R');  


                            
$pdf->Ln(4);   


                            
$postal utf8_decode('Dirección:');

                            
$pdf->MultiCell(150,1,$postal);
                            
$pdf->SetFont('','');
                            
$pdf->Cell(183,1,'wedwedwedwed',0,0,'R');  


                            
$pdf->Ln(4);  


                            
$postal utf8_decode('C.P.: wedwd');

                            
$pdf->MultiCell(150,1,$postal);
                            
$pdf->SetFont('','');
                            
$pdf->Cell(182,1,'',0,0,'R');  


                            
$pdf->Ln(4); 

                            
$pdf->SetFillColor(224,235,255);
                            
$pdf->SetTextColor(0);
                            
$pdf->SetFillColor(255,0,0);
                            
$pdf->SetFont('arial','',10);
                            
$fill=false;
                            
$w 10;
                            
$height =6;


                            
$pdf->Cell('84'$height'DESCRIPCIÓN''1''0''C'$fill);
                            
$pdf->Cell('35'$height'CANTIDAD''1''0''C'$fill);
                            
$pdf->Cell('35'$height'P. unitario''1''0''C'$fill);
                            
$pdf->Cell('35'$height'IMPORTE''1''0''C'$fill);
                            
$pdf->Ln();

                            
$pdf->Cell('84'$height$mejor_precio'1''0''C'$fill);
                            
$pdf->Cell('35'$height'''1''0''C'$fill);
                            
$pdf->Cell('35'$height'''1''0''C'$fill);
                            
$pdf->Cell('35'$height'''1''0''C'$fill);    

                            
$pdf->Ln();




//Pie de página

class PDF extends FPDf
{
// Page footer
function Footer()
{
    
// Position at 1.5 cm from bottom
  
    
$this->SetY(15);
    
// Arial italic 8
    
$this->SetFont('Arial','I',8);
    
// Page number
    
$this->Cell(0,10,'Page oiwfwoefspoi,dsfsdfoipjsdf,osdpof,sdfopisj,dfo ',0,0,'C');
}

}
// Instanciation of inherited class







    //}

                
$nombre_pdf 's.pdf';

        
$pdf->Output($nombre_pdfD);

require_once(
'mail/class.phpmailer.php');

$mail             = new PHPMailer(); // defaults to using php "mail()"

$body             'buena';
$body             'buena';

$mail->AddReplyTo("[email protected]","First Last");

$mail->SetFrom('[email protected]''First Last');

$mail->AddReplyTo("[email protected]","First Last");

$address "[email protected]";
$mail->AddAddress($address"John Doe");

$mail->Subject    "PHPMailer Test Subject via mail(), basic";

$mail->AltBody    "To view the message, please use an HTML compatible email viewer!"// optional, comment out and test

$mail->MsgHTML($body);

$mail->AddAttachment("images/phpmailer.gif");      // attachment
$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment


$doc $pdf->Output('''S');
$mail->AddStringAttachment($doc'doc.pdf''base64''application/pdf');
$mail->Send();  

if(!
$mail->Send()) {
  echo 
"Mailer Error: " $mail->ErrorInfo;
} else {
  echo 
"Message sent!";


Un saludo