搜尋 Mozilla 技術支援網站

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

Learn More

Content Type "PDF file" Keeps Getting Added; Impossible to Preview in Firefox

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

more options

Awhile ago, Firefox stopped previewing or opening .pdf files correctly. Instead, it would always ask if I wanted to open or save the file. Selecting to open would just have the same result, and so on. This was regardless of if the file was local or on the internet.

So I went to Options>Applications and searched "pdf" and two results came up under Content Type. The first was "PDF file" which can only either "Always ask," "Save File," or open in a different program. The other was "Portable Document Format" which was set to "Preview in Firefox." I concluded the first Content Type was the problem, but I had no idea how to fix it. Eventually I tried refreshing Firefox, and this got rid of the problem temporarily.

It seems that this error keeps occurring after some time, and constantly having to refresh and change my settings is frustrating. This is a problem because I want to use Firefox to view pdf files without using 3rd party software. Your help is appreciated!

Awhile ago, Firefox stopped previewing or opening .pdf files correctly. Instead, it would always ask if I wanted to open or save the file. Selecting to open would just have the same result, and so on. This was regardless of if the file was local or on the internet. So I went to Options>Applications and searched "pdf" and two results came up under Content Type. The first was "PDF file" which can only either "Always ask," "Save File," or open in a different program. The other was "Portable Document Format" which was set to "Preview in Firefox." I concluded the first Content Type was the problem, but I had no idea how to fix it. Eventually I tried refreshing Firefox, and this got rid of the problem temporarily. It seems that this error keeps occurring after some time, and constantly having to refresh and change my settings is frustrating. This is a problem because I want to use Firefox to view pdf files without using 3rd party software. Your help is appreciated!

被選擇的解決方法

I found a solution after searching very thoroughly. Before I had tried things like editing or deleting mimeTypes.rdf from the profile folder, but it did not work. Finally read somewhere that Firefox must be closed in order for this to work.

If anyone ever has the same problem, try following the same steps so that you do not have to refresh:

1. Locate the Profiles folder. I found this by clicking the three bars in the tool bar, then the ? button at the bottom, then Troubleshooting Information, then Show Folder next to Profile Folder. Alternatively, you can reach Troubleshooting Information by hitting alt, selecting Help, then Troubleshooting Information; you can also type "about:support" in the address bar.

2. Close Firefox. Wouldn't work for me unless this was done.

3. Delete mimeTypes.rdf from the Profile Folder. You could also rename it something else in case you wanted this as a backup. Firefox will automatically make a new mimeTypes.rdf the next time you start it.

4. Start Firefox, go to "about:preferences#applications" by typing this in the address, and search for "pdf." The second content type was not there for me after doing this. Hopefully this works for others too.

從原來的回覆中察看解決方案 👍 0

所有回覆 (1)

more options

選擇的解決方法

I found a solution after searching very thoroughly. Before I had tried things like editing or deleting mimeTypes.rdf from the profile folder, but it did not work. Finally read somewhere that Firefox must be closed in order for this to work.

If anyone ever has the same problem, try following the same steps so that you do not have to refresh:

1. Locate the Profiles folder. I found this by clicking the three bars in the tool bar, then the ? button at the bottom, then Troubleshooting Information, then Show Folder next to Profile Folder. Alternatively, you can reach Troubleshooting Information by hitting alt, selecting Help, then Troubleshooting Information; you can also type "about:support" in the address bar.

2. Close Firefox. Wouldn't work for me unless this was done.

3. Delete mimeTypes.rdf from the Profile Folder. You could also rename it something else in case you wanted this as a backup. Firefox will automatically make a new mimeTypes.rdf the next time you start it.

4. Start Firefox, go to "about:preferences#applications" by typing this in the address, and search for "pdf." The second content type was not there for me after doing this. Hopefully this works for others too.