Risoltoooooooooo cosi

.....


header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Cache-Control: private", false);
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=\"$path\"");
header("Content-type: application/pdf");
$pdfcode=$pdf->Output($path,'S');
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . strlen($pdfcode));
echo $pdfcode;
die();


.....