setImageFormat("pdf")) die("Konnte nichts ändern"); header("Content-type:application/pdf"); if (isset($_POST['download'])) header("Content-Disposition:attachment;filename='downloaded.pdf'"); die ($img->getImageBlob()); } ?>
Download