- To: Michael Lake <mikel@xxxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] How to get a PDF file in memory to a users Web browser
- From: Rick Welykochy <rick@xxxxxxxxxxxxx>
- Date: Sun Sep 29 21:21:02 2002
- Cc: slug@xxxxxxxxxxx
Michael Lake wrote:
> print "Content-disposition: inline; filename=$filename\n\n";
> print $document;
>
> And it is quite fast too. Netscape renders the image of the PDF
> immediately, so much faster for the client too !
> It seems strange to me thought that it needs a filename. I dont quite
> understand why its required.
The filename will appear in the Save As dialogue box, should the
user decide to save the file instead of viewing it in the browser.
It is the friendly thing to do ... without the filename, the
Save As dialogue would show a name like 'script.cgi' or whatever
instead.
cheers
rickw
--
_________________________________
Rick Welykochy || Praxis Services
That that is is that that is not is not.