0

I claim that I searched for weeks without found an answer.

I'm developing a web app in rails located in a web server and I need to print some text to my home thermal printer. I want to do this directly without open browser dialog and the app should do this on all the browser.

I know that I can do it with Google Cloud Print but it will only works with Chrome. ( I can add this printer only in classic printer mode, because Cloud Print does not support it as cloud printer ).

There is a way to do this?

Thanks in advance.

Bistaff
  • 133
  • 2
  • 12
  • 1
    If you mean print on the users printer without a dialog this will not be possible for security reasons. If you want to print on a printer you own then you would need some web service which the browser can talk to, the web service could communicate with the locally attached printer. So basically you are going to want to run your Rails app on the same computer as the printer. – Kris Jul 18 '17 at 13:58
  • @Kris Thank you very much for the explanation. – Bistaff Jul 19 '17 at 07:30
  • To add to this...and though I'm late to the party here...one could also potentially setup a raspberry pi with an api service that you can send to, with the data to trigger the local print...and yes, these sorts of printers can only usually be setup as generic due to the commands and content being character based. – Lloydo Apr 29 '22 at 06:01

0 Answers0