Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/05/2009, 02:57
bertoR
 
Fecha de Ingreso: marzo-2009
Mensajes: 105
Antigüedad: 15 años, 1 mes
Puntos: 0
Clase fpdf problemillas

Estoy intentando generar documentos pdf con la clase fpdf.

Tengo en el directiorio asi

-www.web.com
-Pruebas ->font
->fpdf.php
->generar_pdf.php

Son los archivos necesarios para hacer funcionar la calse.

el codigo en el generar_pdf es:

<?php
require('fpdf.php');
define('FPDF_FONTPATH','font/');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'¡Hola, Mundo!');
$pdf->Output();
?>

En teoria no hay ningun fallo y deberia crearme el pdf,pero cuando vamos a ver el resultado(link para verlo online -> http://www.todotrucos.org/pruebas/tucos_pdf.php):

%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream xœ3Rðâ2Ð35W(çr QÐw3T04Ó30PISp êZ*˜[š€…¤(h,ôÈÏIÔQð-ÍKÉWÔTÉ)*7¯ 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.6) /CreationDate (D:20090525015128) >> 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 0000000229 00000 n 0000000417 00000 n 0000000009 00000 n 0000000087 00000 n 0000000316 00000 n 0000000521 00000 n 0000000596 00000 n trailer << /Size 8 /Root 7 0 R /Info 6 0 R >> startxref 699 %%EOF


Si alguien puede ayudarme .

Gracias de antemano.

Última edición por bertoR; 25/05/2009 a las 02:58 Razón: typo