Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/12/2011, 17:25
Avatar de gilber966
gilber966
 
Fecha de Ingreso: abril-2010
Mensajes: 117
Antigüedad: 14 años
Puntos: 4
duda con fpdf

Hola tengo la libreria fpdf la estoy implementado asi:

Código PHP:
Ver original
  1. <?php
  2. require('Fpdf/fpdf.php');
  3.  
  4. $pdf=new FPDF();
  5. $pdf->AddPage();
  6. $pdf->SetFont('Arial','B',16);
  7. $pdf->Cell(40,10,'Este es un ejemplo de creación de un documento PDF con PHP');
  8. $pdf->Output();
  9.  
  10. ?>

pero cuando abro el script me sale:

%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream x�3R��2�35W(�r Q�w3T04�30PISp  �Z*�[����(h���*�+��)�f����+��*$�&&g~���2)�ɥ ��y%� .n ��y � !Y S�l � endstream endobj 1 0 obj <> endobj 5 0 obj <> endobj 2 0 obj << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] /Font << /F1 5 0 R >> /XObject << >> >> endobj 6 0 obj << /Producer (FPDF 1.53) /CreationDate (D:20111206062057) >> endobj 7 0 obj << /Type /Catalog /Pages 1 0 R /OpenAction [3 0 R /FitH null] /PageLayout /OneColumn >> endobj xref 0 8 0000000000 65535 f 0000000271 00000 n 0000000459 00000 n 0000000009 00000 n 0000000087 00000 n 0000000358 00000 n 0000000563 00000 n 0000000639 00000 n trailer << /Size 8 /Root 7 0 R /Info 6 0 R >> startxref 742 %%EOF

No se cual sera el problema y no logro resolverlo, como ven el ejemplo es en teoria muy sencillo pero no me funciona.

sera por que estoy usando ajax? la pagina se carga en un div.


muchas gracias