on the screen there's a button, when user clicks it, a function is called. this function is creating a pdf file, in the end of the function a pdf file is created and saved in tmp folder. I want to add some code at the end of that function that would open this file.
I tried this-
and it works but it opens up in the browser, and I need it to open up in adobe reader or any program that would normally open it if you just double click the file..