搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I get PDF files to *automatically* save as the file name provided by the source?

  • 4 回覆
  • 2 有這個問題
  • 1 次檢視
  • 最近回覆由 RJL_web

more options

When I download a PDF file in Firefox, the file name changes from whatever name source used (e.g, important-report.pdf) to a miscellaneous group of characters (e.g., X2ba5zt.pdf). I often want to save the file using the 'source' name. I realize that can so do by changing the file name, but I would like to know if there is a way to set the default so that the source file name is used.

When I download a PDF file in Firefox, the file name changes from whatever name source used (e.g, important-report.pdf) to a miscellaneous group of characters (e.g., X2ba5zt.pdf). I often want to save the file using the 'source' name. I realize that can so do by changing the file name, but I would like to know if there is a way to set the default so that the source file name is used.

所有回覆 (4)

more options

I am not seeing that behaviour. If I right-click a link to a .pdf file, I get the file saved with the original filename. Maybe one of the settings in about:config controls that? pdfjs.previousHandler.preferredAction is a setting that has a value of 4 with my setup. I have no idea what that means, and I could not find any explanation anywhere. You could try using different numbers for that value and see if any make any difference. Why has nobody bothered to explain that setting anywhere?

more options

Where do I find pdfjs.previousHandler.preferredAction? And shouldn't something like this be readily configured?

more options

That setting is in about:config. Do a search for pdf to find it there. I am not sure what that setting does, and it is the only one for pdf which is not straightforward.

more options

Thanks for your continued feedback.

I wonder if there is anyone else in the forum who could help both of us on this issue.