i want to print receipts as bitmaps on Epson POS printers. The printers are not directly attached though. The receipt rendering is done on the backend webservice, and the generated bytes will be sent to the frontend, where the printer is actually attached.
So i took a look into the Epson JavaPOS ADK, but i found only code to call directly attached printers, but no utility classes or so.
So my question is: Does anyone know a way to use the Epson JavaPOS ADK to "print" to bytes instead to a printer?
Thx!
The following means are conceivable.
Store in BMP file and print.
printBitmap
method of the POSPrinter device. Print data as it is in memory. (When EPSON JavaPOS and printer supports it)
printMemoryBitmap
method of the POSPrinter device. (When the front end is a Windows machine) Print on a Windows standard printer.
Of course, it is necessary to convert the Bitmap data notified from the Web service into BMP file or Windows print data, but it can be done by using API of your OS or Java library function.
In that case, you may be using the ePOS SDK instead of the JavaPOS ADK.
However, at least some software development is necessary.
There are four types below, so please try it according to your frontend environment.
Epson ePOS SDK for Universal Windows apps
Epson ePOS SDK for Android
Epson ePOS SDK for iOS
Epson ePOS SDK for JavaScript
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.