The url will load the pdf document
https://riverside.iqm2.com/sameer/FileOpen.aspx?Type=14&ID=2157&Inline=True.
but when i pass this url into header() chrome is throwing the following error failed to load pdf document
$filename = 'https://riverside.iqm2.com/sameer/FileOpen.aspx?Type=14&ID=2157&Inline=True';
header('Content-Type: application/pdf');
header('Content-Description:inline;filename="'.$filename.'"');
header('Content-Transfer-Encoding:binary');
header('Accept-range:bytes');
@readfile($filename);
i expect to download the pdf but the output is failed to load pdf document