【问题标题】:Why does opening a pdf with pdf.js sometimes leads to the "save as.." dialog instead?为什么使用 pdf.js 打开 pdf 有时会导致“另存为..”对话框?
【发布时间】:2013-03-21 16:29:54
【问题描述】:

我已将 firefox 设置为我的标准 pdf 查看器,因为我对 pdf.js 的体验非常好。 不幸的是,某些 pdf 文件无法打开,而是显示“另存为”对话框。为什么会发生这种情况,我该如何解决?

【问题讨论】:

    标签: firefox pdf.js


    【解决方案1】:

    很可能是因为服务器明确发送了Content-Disposition: attachment。

    不幸的是,目前没有合理的方法可以覆盖它。

    【讨论】:

    • 很有意义,因为在 Foswiki 中打开页面附件时会发生这种情况。此外,2014 年 7 月的 Firefox 31 仍然如此。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-04
    • 2013-11-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多