setLotto($_GET["codice_lotto"])) { $record = $concorso->info; $round = $concorso->round; $lotto = $concorso->lotto; $partecipante = $concorso->miaPartecipazione(); if (!empty($partecipante) && $partecipante["conferma"] == "S") { $content = $concorso->getRicevuta(); $pdf = documentConverter::getPDFWithWKHTML($content,"A4","portrait"); if (!empty($pdf)) { $error = false; header("Content-type: application/pdf"); header("Content-Disposition: attachment; filename=ricevuta.pdf"); echo $pdf; } } } } } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>