Best way to print PDF file


I have a Rails Application which shows a list of file names. These files
are PDF documents. For each one I have a checkbox. In the web page I
also have a print button. Has you could imagine, the goal is to print
the files that has the checkbox checked.
Since the web page can be executed from any computer and the rails
server is on another computer (as the PDF files), how can I print these

Thank you

best regards.