Print pdf with javascript

I want to write a jscript that should be able to open a specified pdf file, print it and close the application afterwards.
I have googled the problem and found a lot of tips though nothing worked for me.
If you are familiar with js and this does not interrupt any of your work, could you write some tips that worked for you. I have Acrobat Reader 7 installed.

Just a suggestion. Install firebug in firefox, load an HTML page that embeds the acrobat reader plugin (an iframe with a pdf or something) and inspect the object to see what methods are exposed to javascript. You may have a “print” method. In such a case “document.getElementById(‘pdfplugin’).print();” would be a good change of getting it to work.