Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/09/2013, 15:26
chubse
 
Fecha de Ingreso: marzo-2012
Mensajes: 84
Antigüedad: 12 años, 1 mes
Puntos: 3
Respuesta: Generación de archivo PDF

Que tal damg_1406, ¿podrías postear tu código para ver que estás haciendo mal? Porque recuerda que la librería FPDF utiliza sus propias sentencias, por ejemplo:

Código PHP:
Ver original
  1. $pdf=new PDF('P','mm','Letter');
  2.     $pdf->AddPage();
  3.    
  4.      $pdf->Image('logo.jpg',20,20,20,22,'JPG');
  5.      
  6.     $pdf->SetFont('Arial','',12);
  7.     $pdf->Ln(2);
  8.     $pdf->Cell(40);
  9.     $pdf->Cell(115,5,"UNIVERSIDAD NACIONAL AUTÓNOMA DE MÉXICO",0,1,'C');
  10.     $pdf->Cell(40);
  11.     $pdf->Cell(115,5,"FACULTAD DE ESTUDIOS SUPERIORES",0,1,'C');
  12.     $pdf->Ln(5);
  13.    
  14.     $pdf->Ln(5);
  15.     $pdf->Cell(10);
  16.     $pdf->Cell(45,7,"Nombre del alumno:",0,0);
  17.     $pdf->Cell(120,7,$row[0] . " " . $row[1] . " " . $row[2],1,1);
  18.     $pdf->Ln(2);
  19.     $pdf->Cell(10);
  20.     $pdf->Cell(30,7,"Edad:",0,0);
  21.     $pdf->Cell(25,7,$row[3],1,1);
  22. .
  23. .
  24. .
  25. .
  26. .