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.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to