搜尋 Mozilla 技術支援網站

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

了解更多

When I try to display .pdf file in browser (with proprietry extension .dnax) I get the error message "A plugin is needed to display this content".

more options

I am trying to display a .pdf file within Firefox on a Vista PC. I have changed the extension from .pdf to .dnax to differentiate this .pdf file from others. I get an error message as above. The file is displayed using Firefox on another PC with a Linux OS without problem. Any advice out there?

I am trying to display a .pdf file within Firefox on a Vista PC. I have changed the extension from .pdf to .dnax to differentiate this .pdf file from others. I get an error message as above. The file is displayed using Firefox on another PC with a Linux OS without problem. Any advice out there?

所有回覆 (1)

more options

Firefox typically judges the nature of a document or download based on the content-type header send by the web server. Usually a server has a catalog associating file extensions with content types. When you choose a new file extension, the server may send the generic "it's some kind of binary file" header ("application/octet-stream") which Firefox will not associate with a particular program.

Now, when you open a file from the local system, there is no web server, so Firefox may look to the file extension to ascertain the content type. Obviously that is not working in your case. What happens when you want to open the file from My Computer or Windows Explorer? Does Windows have an application assigned to it? If you can associate it with Adobe Reader in Windows, Firefox may be able to pick that up from the Windows registry.