Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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 respostas
  • 2 have this problem
  • 1 view
  • Last reply by 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.