Open PDF about:blank

Hello,

Does anyone know how to fix the “untitled about:blank” page when opening PDF Report application?

sc_lookup(rsd, $check_sql);

$statement_pdf = {rsd[0][0]};
$pdf_data = base64_encode($statement_pdf);
$data = base64_decode($pdf_data);
header(‘Content-Type: application/pdf’);
header(‘Content-Disposition:attachment;filename=statement.pdf’);
echo $data;

Thanks,
Lisa