Php 内联PDF附件-不';我不能在FF上工作

Php 内联PDF附件-不';我不能在FF上工作,php,inline,attachment,Php,Inline,Attachment,我的php脚本输出以下代码: <object height="100%" width="100%" id="help" align="left" data="file_helper.php" type="application/pdf"> Click <a href="file_helper.php">here</a> to view help. </object> 单击以查看帮助。 不带参数的文件_helper.php的定义如下:

我的php脚本输出以下代码:

<object height="100%" width="100%" id="help" align="left" data="file_helper.php" type="application/pdf">
    Click <a href="file_helper.php">here</a> to view help.
</object>

单击以查看帮助。
不带参数的文件_helper.php的定义如下:

header('Content-type: application/pdf');
header('Content-Disposition: inline');
header('Content-Transfer-Encoding: binary');
header('Pragma: no-cache');
header('Content-Length: '.<length of binary pdf file>);
header('Expires: 0');
echo '<binary pdf file>'
标题('Content-type:application/pdf');
标题('Content-Disposition:inline');
标题(“内容传输编码:二进制”);
标题('Pragma:no cache');
标题('内容长度:');
标题('Expires:0');
回声“
问题是,这在IE浏览器Chrome上有效。 在Firefox中,它只能在本地工作,但不能在远程工作

在Firefox上,我得到的是:单击此处查看帮助,使用working href

但我想以内联方式显示文件。有什么我做得不对吗


编辑:Android Chrome,Android FF不显示pdf;Ubuntu上显示FF,Windows上不显示FF。

并非所有浏览器都以相同的方式支持pdf。这就是生活。听起来FF不支持嵌入式PDF。拥有链接的全部目的是在不受支持时提供回退。并非所有浏览器都支持pdf文件的webview。对于android,并非所有浏览器都以相同的方式支持pdf。这就是生活。听起来FF不支持嵌入式PDF。拥有链接的全部目的是在不受支持时提供回退。并非所有浏览器都支持pdf文件的webview。对于android,您可以使用