Solved

PDF irrecognizable code when opened in firefox

Posted on 2011-03-18
4
392 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IPhone using PC internet 17 59
DLL in ASP.NET 20 56
.Net Web Site IIS Web.Config Content-Security-Policy 1 38
How to know how many IP addresses your ISP give you 4 9
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…
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now