http://qs1969.pair.com?node_id=54159


in reply to how to output to pdf from a perl script

couldn't you also just do this at the beginning of the html:
print "Content-type: application/pdf\n\n";
correct me if I'm wrong but I'm pretty sure this would work

skeight

Replies are listed 'Best First'.
Re: Re: how to output to pdf from a perl script
by myocom (Deacon) on Jan 25, 2001 at 08:08 UTC

    You should certainly be including that in your HTTP header, but IE prefers to pay attention to the file extension. If you have a URL such as http://www.someserver.com/cgi-bin/sendpdf.cgi, and that CGI script generates a PDF file and sends it along, IE won't see it as a PDF, it will see it as a .CGI file.

      Ahhh, Now I see. Thanks for the input on that one. I wasn't aware of that...

      skeight