how to generate the pdf into file

the subject is quite clear...
can somebody tell me how to do it???
since until now i only able to generate the pdf then
view it straight away in the browser
i want to save the pdf automatically instead of
manually save it.
can somebody give me some examples code if you can
save the pdf into file 
thanks

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Received on Monday, 25 November 2002 05:56:28 UTC