Steve Smith wrote: > > simran writes: > > I believe there is also a Content-disposition tag you can use to > > tell the browser what to name the file... > > As mentioned below in my original post, it doesn't work in all > browsers.
Like you say, PATH_INFO works for many browsers. I ran into issues with IE not using it properly... I ended up having to tack "&MYPDFFILE.pdf" onto the end of the URI, just so that it would use the correct extension. Something to try perhaps. e.g.: http://server/perl/pdfgen.pl/MYPDFFILE.pdf?&MYPDFFILE.pdf In my case, I had to do this trick to get *.exe files to download as *.exe instead of *.com. In the couple of PDF scripts that I have written, I used other modules to create a PostScript or PNG file, then used a system call to convert it to a PDF. For something that isn't being used very often this should be acceptable. Once its a PDF on the system, the file can read in and printed to STDOUT or a redirect to http://server/tmpfiles/$randomtmpfile can be done. -- Regards, Wim Kerkhoff, Software Engineer Merilus, Inc. -|- http://www.merilus.com Email: [EMAIL PROTECTED]