OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Displaying PDF in Internet Explorer

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Displaying PDF in Internet Explorer

Postby arnost » Mon Mar 22, 2004 3:21 pm

I had problems displaying PDF files with Internet Explorer + Acrobat Reader in Microsoft Windows (Mozilla in Linux works).

Standard behaviour: click on PDF -> file is displayed in Expolorer window.

OJS behaviour: Explorer asked what I want to do with this file (Open, Save...) If I chose Open, Acrobat Reader is launched (in new window).
Acrobat Reader tried to open file, but it only displayed error "File Not Found"!


Here is my solution:
I changed one line in include/getdoc.php
There was:
header("Content-Disposition: attachment; filename=\"...
I changed to:
header("Content-Disposition: inline; filename=\"...
It works now.


(I looked on headers from http://www.math.washington.edu/~ejpecp/ - site which displays PDF well)

Does Internet Explorer displays your PDF files? Should I change 'attachment' to 'inline'? Or it is only problem with my web-server?

Arnost
arnost
 
Posts: 5
Joined: Thu Jan 22, 2004 2:27 am

Re: Displaying PDF in Internet Explorer

Postby jkeisers » Wed Jul 28, 2004 3:17 pm

arnost wrote:
Here is my solution:
I changed one line in include/getdoc.php
There was:
header("Content-Disposition: attachment; filename=\"...
I changed to:
header("Content-Disposition: inline; filename=\"...
It works now.


Thanks a lot. I had the same problem with web-viewable files like PDF. This solved it.
jkeisers
 
Posts: 19
Joined: Wed Jul 21, 2004 9:13 pm
Location: Rutgers University, NJ, USA


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Bing [Bot] and 2 guests