Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/02/2007, 15:07
Avatar de alvgutierr
alvgutierr
 
Fecha de Ingreso: mayo-2006
Ubicación: Santiago Chile
Mensajes: 42
Antigüedad: 18 años
Puntos: 0
Problemas al generar un simple PDF

<?php
ob_start();
header("Content-Type: application/pdf");
header("Content-Disposition: attachment; filename=\"cacti.pdf\"");
ob_end_flush();
?>
<h1>creando pdf </h1>


Cuando corro este script en el browser se abre con el adobe
pero me indica una alerta
que el archivo esta corrupto o esta dañado ???