Java applet creation guide, printing without a hint

Well, I created a web POS to take order. My question is how to create a Java applet;

  • Shows HTML page and print button.
  • Print order without request (no dialog box)

Additional Information: It works like this. The waiter will record the orders from the computer (POS), when they press print, he will find the IP address of the printer in the kitchen, and then print the orders immediately without a hint. I am really looking for a link / guide that can help me get started. Any advice would be helpful. thank you

+4
source share
2 answers

You cannot do this for security reasons. If you could, applets would already be infamous for printing 10+ pages of "special offers" when you visit unscrupulous websites.

OTOH, if the client is ready to accept one invitation when starting the applet, you can sign a digital code.

+4
source

There is a project that does HTML printing using HTML5 to display the contents in PNG and Java for printing directly, just as described in the original post. This project is called "qz-print" (formerly called "jzebra"), and it offers a digital signature in both self-signed (free) and trusted subscriptions (with premium).

It also uses JNLP signed files, as illustrated by Andrew Thompson. (Thanks, Andrew, your contribution to Java as a whole has been a great help for Java developers around the world.)

https://code.google.com/p/jzebra/

0
source

Source: https://habr.com/ru/post/1385463/


All Articles