Printing file through browser
I am trying to print a file using the browsers functionality. I can get it to work however the printer dialog opens on the server not in the browser.
I assume I have to change it to be some sort of response/request but I am not sure how to do that.
Currently i have a button that when pushed it generates afile to an input stream which i then output to the printer using PDFBox
the above works but of course opens the dialog box on the printer not the users machine.
pdDocument = PDDocument.load(generateFile);