PDF Download PopUp

Pop-up window for downloading a generated PDF is no longer displayed! The file is saved anyway

Prompting or not for a location to save a file to be downloaded is a borwser’s setting, I think.
E.g. for Google Chrome:

Hello…
This code obtain a PDF from a blob, and open in a window, to display or download

if ([Cod_RegistroPar] == 0) {
$params = array(
‘title’ => ‘Error de Descarga’,
‘type’ => ‘error’,
‘timer’ => ‘10000’,
‘position’ => ‘center’,
);
sc_alert(“El comprobante no puede ser descargado…”, $params);
} else {
sc_lookup(rs1,“Select Comprobante, NombreArchivo From Comprobantes Where Cod_Registro = " . [Cod_RegistroPar]. " AND Tipo = '”.[TipoCptePar]."’ AND Sistema = ‘".[Sistema]."’");
//echo {rs1[0][1]}. ‘’ .{rs1[0][0]};
if(count({rs1}) <> 0) {
$filenombre = {rs1[0][1]};
$ubot = {rs1[0][0]} ;
header(“Content-Description: File Transfer”);
header(“Expires: 0”);
header(‘Content-Transfer-Encoding: binary’);
header(‘Content-type: application/pdf’);
header(“Cache-Control: no-cache”);
header(“Pragma: no-cache”);
header(“Content-Disposition: inline;filename=’”.$filenombre."’");
header("Content-length: ".strlen($ubot));
echo $ubot;
//readfile($ubot);
exit();
}
}