<?php // Vamos a mostrar un PDF header('Content-type: application/pdf'); // Se llamará downloaded.pdf header('Content-Disposition: attachment; filename="downloaded.pdf"'); ?>