We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 4 balasan
  • 2 ada masalah ini
  • 1 paparan
  • Balasan terakhir oleh 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.

All Replies (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.