Converting to PDF and saving to local system
I want to provide a button on the screen, onclick of which the current screen output should be converted in "pdf" format and the user should be able to save it onto his local system.
Can anyone tell me how to do it ??
what functions do i need to use to convert it to pdf and then to allow user to save on local system??