Silentprinting javascript

I have a requirement like there is system connected with 3 types of printers connected in a network(A4, A3, A6).From web application, I want to print the pdf files of these(A4, A3, A6) different sizes.And it has to choose the respective printer based on paper size and print silently without opening a print popup window.How can I achieve this requirement by using javascript