You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrus <ee...@online.ee> on 2003/04/04 22:07:03 UTC
[users@httpd] IE6+Adobe Reader 5 will not open a PDF File from CGI app
I created a PDF file (mypdf.pdf) in a CGI app and want to display it in
browser.
I return the following data from my CGI application:
Content-type: application/pdf
Location: /myloc/mypdf.pdf
Results observed:
[v] show PDF in browser checkbox is selected in Adobe PDF reader 5 :
Empty screen without any error appers. Access log shows that Apache
reads pdf file
put browse does not show it.
[ ] show PDF in browser checkbox is not selected in Adobe PDF reader 5 :
As save dialog appers in IE 6. It is possible to save a PDF, not to
open.
Typing /myloc/mypdf.pdf in browser command line shows PDF OK.
I thin Apache sends http headers which causes IE not no allow open a pdf
file.
Is it possible to show or open PDF in browser using Apache ?
Environment:
Apache/2.0.44 (Win32) Server
Windows 98
IE 6
Adobe Acrobat Reader 5
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] IE6+Adobe Reader 5 will not open a PDF File from CGI app
Posted by Sebastian Wolfgarten <se...@gmx.net>.
Hi Andrus,
I have had exact the same problem: I wrote an output filter which converts
text/html data to pdf files on the fly and it worked fine with Netscape but I
never got it working proably with IE. If you get it running, please drop
me a line. See http://support.microsoft.com/default.aspx?scid=kb;en-us;305153
for a description. In my case IE did not try to save the pdf file but showed
a blank page.
Bye,
Sebastian
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] IE6+Adobe Reader 5 will not open a PDF File from CGI app
Posted by Andrus <ee...@online.ee>.
Sebastian,
I create PDF files using Ghostscript+IE 6 + Adobe PDF reader 5 + My own open
source web server .
In this case PDF files will display inside IE 6 window!
If I change web server to Apache 2.0.44 and use CGI script, IE 6 does not
display PDF inside its window.
It also does not allow to open PDF, only to save. This is VERY inconvenient.
So IE 6 is capable to open PDF files. I think this is a Apache or CGI
problem.
Where is this IE bug/feature described ?
Andrus.
----- Original Message -----
From: "Sebastian Wolfgarten" <se...@gmx.net>
To: <us...@httpd.apache.org>; "Andrus" <ee...@online.ee>
Sent: Friday, April 04, 2003 11:29 PM
Subject: Re: [users@httpd] IE6+Adobe Reader 5 will not open a PDF File from
CGI app
> Hi Andrus,
>
> this is a bug/feature of Microsofts' Internet Explorer
> (see www.microsoft.com). Sending a PDF file to a client
> from a CGI/PHP/whatever script works fine with Netscape
> for instance if you send the correct headers. MS has
> disabled the support for dynamicly created PDF files if they
> do not have a special (.pdf) file suffix due security reasons.
>
> Bye,
> Sebastian
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] IE6+Adobe Reader 5 will not open a PDF File from CGI app
Posted by Sebastian Wolfgarten <se...@gmx.net>.
Hi Andrus,
this is a bug/feature of Microsofts' Internet Explorer
(see www.microsoft.com). Sending a PDF file to a client
from a CGI/PHP/whatever script works fine with Netscape
for instance if you send the correct headers. MS has
disabled the support for dynamicly created PDF files if they
do not have a special (.pdf) file suffix due security reasons.
Bye,
Sebastian
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org