Question: I am working on a web application developed in Java with struts running on Tomcat. I have a requirement in the web application as follows:

One JSP page having a list of PDF files each associated with a checkbox. The JSP page has one Button. Once the user selects the PDF documents he wants to print by selecting the associated checkboxes, user clicks on the button. 

Then all the selected PDF docs should be sent to a specific local Printer( i.e. printer connected to the client machine where from user is accessing the web application). The selected PDF files should not be opened either in acrobat reader or in browser. The PDF docs should not be visible to the user while being sent to printer.

Could anyone please help me in implementing this requirement?

Answer: 
It is possible with **Internet Explorer and ActiveX**. Search about "auto print" and "silent printing" with Google. You may have to lower security settings in Internet Explorer for that.

We're using it here for some Intranets from our Customers.

For **Firefox** you may be able to trigger the print dialog via javascript. (http://stackoverflow.com/questions/975652/silent-print-a-embedded-pdf)
If this is the case you can disable print dialog in FF with setting `print.always_print_silent=true` in `about:config`.

Never did it on my own, so I cannot say for sure if it works like the ActiveX thing does.

For **Chrome** there is an issue requesting same feature like FF has. See <https://code.google.com/p/chromium/issues/detail?id=31395>.
That is not possible with JavaScript. It is possible with either Flash or a Java applet. In either case, you will need to be able to use both the Printer drivers and a custom PDF reading toolkit. There are adequate plugins for both for PDF reading, and both come with a printing API.

If I may say so, this is a *bad* requirement -- it is not good to force a user to print a document without reading it -- and should be re-negotiated, especially since it is trivially simple to have those documents print to PDF anyway.