miaPartecipazione(); if (!empty($partecipante)) { $content = $elenco->getPDF(); } } if (!empty($content)) { header('Content-Type: application/pdf'); header('Content-Disposition: attachment; filename=Questionari.pdf'); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); echo $content; } else { header('HTTP/1.0 403 Forbidden'); echo __("Errore nella richiesta"); die(); } } ?>