0){ $error = false; header("Content-type: application/pdf"); header("Content-Disposition: inline; filename=export.pdf"); echo $pdf; } } if($error){ header('HTTP/1.0 403 Forbidden'); die(); } ?>