httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11978] New: - Output filter not working with ie but with netscape
Date Fri, 23 Aug 2002 15:49:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11978>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11978

Output filter not working with ie but with netscape

           Summary: Output filter not working with ie but with netscape
           Product: Apache httpd-2.0
           Version: 2.0.40
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_ext_filter
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: sebastian.wolfgarten@gmx.net


Hi,

together with a friend I'm trying to
develop an output filter which reads
data from stdin, converts it into the
well-known pdf format and send the
result to the client. As discussed on
the users mailing list this already
works fine for any netscape browser
but indeed it does not work with
micro$oft's internet explorer. Netscape
returns a fine pdf document but ie
gives just a blank page back (even on
the same file!). If people are interested
in developing such an output filter they
have to install ghostscript and a2ps.
I wrote a small shell script which
does the converting stuff:
#!/bin/sh

/usr/local/a2ps-4.13/bin/a2ps -q -o - | /usr/local/ghostscript-
7.05/bin/ps2pdfwr -

I also did define an output filter in
httpd.conf:

ExtFilterDefine pdfwriter mode=output intype=text/html outtype=application/pdf 
cmd="/usr/local/apache2/bin/pdfwrite.sh"
<Files *.html>
    ExtFilterOptions LogStderr DebugLevel=9
    SetOutputFilter pdfwriter
</Files>

In the error log of the server the following messages
are written:
ri Aug 23 17:46:52 2002] [debug] mod_ext_filter.c(605): [client 192.168.0.2] 
filtering `/test.html' of type `application/pdf' through 
`/usr/local/apache2/bin/pdfwrite.sh', cfg ExtFilterOptions DebugLevel=9 
LogStderr !PreserveContentLength ExtFilterInType text/html ExtFilterOuttype 
application/pdf
[Fri Aug 23 17:46:53 2002] [debug] mod_ext_filter.c(802): [client 192.168.0.2] 
apr_file_read(child output), len 512
[Fri Aug 23 17:46:53 2002] [debug] mod_ext_filter.c(802): [client 192.168.0.2] 
apr_file_read(child output), len 441
[Fri Aug 23 17:46:53 2002] [debug] mod_ext_filter.c(802): [client 192.168.0.2] 
apr_file_read(child output), len 2012
[Fri Aug 23 17:46:53 2002] [debug] mod_ext_filter.c(802): [client 192.168.0.2] 
(20514)End of file found: apr_file_read(child output), len -1

As I said netscape returns the pdf, ie does not (just blank page). 
I have found an article in the microsoft knowledge which (maybe) describes
the reason for this feature/bug:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q305153
(see parts cause and resolution!)

Bye and thanks,
Sebastian

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message