<?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 ???