tags:

views:

88

answers:

1

Hello,

is there a way to print pdf files from a java webapplication on the local printer of the end user (connected via vpn)? The simple lookup of a printer via Java Printing Service always returns printer which are not able to print pdfs. Are there other libs which can be used for printing in java?

By the way, just opening the pdf in the browser is not an option, though it must be possible to run scheduled batch printing without user interaction.

Thanks in advance

+1  A: 

Since the Java web application can't connect to the client (the client connects to it), there is no way to do this.

The only solution is to send the PDF file to the client via a download link or similar, so that the browser on the client can offer the user to save or print it.

Aaron Digulla
Thanks Aaron.What we do at the moment, is connecting to the printer via its IP, and send the documents via LPR. This works quite fine for different doc types, but not for pdf.
Julia
Interesting; I'd expect the opposite: Most printers should be able to handle PDF. What you can try is to convert the PDF document to something the printer understands (see its manual) on the server.
Aaron Digulla