Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PDF irrecognizable code when opened in firefox

Posted on 2011-03-18
4
Medium Priority
?
407 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Screencast - Getting to Know the Pipeline

916 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