Solved

PDF irrecognizable code when opened in firefox

Posted on 2011-03-18
4
395 Views
Last Modified: 2012-05-11
I am creating a website with links to the pdf file. The webpages and pdf files are stored in one server. The pdf file can be opened through IE browser but not through the firefox browser.      

0
Comment
Question by:hanjgr
  • 3
4 Comments
 
LVL 10

Expert Comment

by:Bawer
ID: 35164893
may be adobe add-on is not present in firefox, install the latest version of adobe pro and check back
0
 

Author Comment

by:hanjgr
ID: 35164943
(All the operations are on the web server!)

The web server has windows server 2003 32-bit, with MS IIS to manage the website.
The PDF files are already stored on the web server.
I use a link <a href="help/quickref/04_Print_a_Map9x2.pdf"> in a html file to open pdf.

I can display pdf file  in firefox from other web sites on the web server.
I can display pdf file stored on the web server in Firefox through "File/Open File...."
but when it comes to website address like :http://rims.gvmc-regis.org/supportcenter/help/quickref/01_How_to_Login9X2.pdf ( even stored on the same server) it gives me "corrupted" things like shown in the pictures.


This is what I have done:

1. I have tried several things according to the post #16012445 and other results I googled on line, installed the foxit reader, not helpful.

2. I have check the the MIME Type setting from IIS manager-> local Computer->property-> MIME Types....
.pdf  extension is set to be with MIME type: "application/pdf". I also restarted the IIS service. Still firefox cannot show the pdf file.

3. I installed  the Live HTTP Header extension on the web server, looking for the header info,
the html file's header includes: Content-Type: image/gif
the corrupted pdf file's header has: Content-Type:text/html
It seems like this is the problem.

I downloaded a MIME edit for firefox and added a new type: application/pdf for extension :.pdf. Still not helped.

All the operations are done on the web server.

I really appreciate any help!

pdf.bmp
0
 

Accepted Solution

by:
hanjgr earned 0 total points
ID: 35168853
I figured it out!
The website is managed by ServletExec. The MIME type for pdf needs to be added over there. --Set MIME Mapping.

0
 

Author Closing Comment

by:hanjgr
ID: 35196740
It works
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question