pdf默认下载文件的header设置
ob_clean();
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename="' . basename($path) . '"');
// header('Content-Disposition: inline; filename="file.pdf"');
header('Content-Transfer-Encoding: binary');
header('Accept-Ranges: bytes');
readfile($path);
exit;