搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How to vary behavior when handling PDFs: download some, show others

  • 2 个回答
  • 0 人有此问题
  • 7 次查看
  • 最后回复者为 zeroknight

more options

When Content Type PDF is set to Open in Firefox in Settings, some hyperlinks (see 'Download PDF' on https://arxiv.org/abs/2402.00923) will navigate to the hosted PDF without downloading to my computer. Others (see 'Download PDF' on https://www.overleaf.com/project/65c142c6d78ec5a8a34636b0) will download to my device then open the downloaded file in browser. (I am also interested in what causes this distinction in the first place.)

When it is set to Save File, both types of links will download to my device without opening.

In my experience with other browsers, the behavior is similar to the first case, but downloaded files are not opened upon finishing downloading, only doing so if the file is clicked on in the download menu during or after downloading. Is there any way to replicate this behavior?

When Content Type PDF is set to Open in Firefox in Settings, some hyperlinks (see 'Download PDF' on https://arxiv.org/abs/2402.00923) will navigate to the hosted PDF without downloading to my computer. Others (see 'Download PDF' on https://www.overleaf.com/project/65c142c6d78ec5a8a34636b0) will download to my device then open the downloaded file in browser. (I am also interested in what causes this distinction in the first place.) When it is set to Save File, both types of links will download to my device without opening. In my experience with other browsers, the behavior is similar to the first case, but downloaded files are not opened upon finishing downloading, only doing so if the file is clicked on in the download menu during or after downloading. Is there any way to replicate this behavior?

被采纳的解决方案

Files can be "inline" (open) or "attachment" (download) according to Content-Disposition. You can make attachment PDFs save without opening by changing browser.download.force_save_internally_handled_attachments to true in about:config.

定位到答案原位置 👍 1

所有回复 (2)

more options

Apologies, the Overleaf link above will not work. Here is a new one https://www.overleaf.com/read/qkccsbnthvgb#a06e10

有帮助吗?

more options

选择的解决方案

Files can be "inline" (open) or "attachment" (download) according to Content-Disposition. You can make attachment PDFs save without opening by changing browser.download.force_save_internally_handled_attachments to true in about:config.

有帮助吗?

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题