How to print an invoice from a browser on an epson thermal printer

I want to print an html account (generated using data coming from rest api) to an epson tharmal printer.

I tried the normal print command with Ctrl + P and showed the correct preview, but printed a blank page.

Can anyone tell me how I can achieve this goal.

I also tried this code http://orbatao.com/ePOS-Print_SDK_151113E/JavaScript/ePOS-Print_Sample_SDK_V5.0.1E/canvas/canvas-print-text.html

But I do not know how to connect a thermal printer with a tcp / ip port. The printer is initially connected to port LPT1.

+4
source share

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


All Articles