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
Comment on Re: how to output to pdf from a perl script
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.