I am using the Epson Epos sdk to print .pdf invoices generated with an external library. The problem is that when I send the invoice to print it prints but in a lot of codes and letters. It does not print the pdf as such. The sdk has a "addCommand" method that receives a "Byte Array" and it doesn't work.
I tried adding the data-type to base64 and then converting it to byte array and it doesn't work either. Can anyone of you have an idea what I'm doing wrong?
SDK EPSON EPOS - Printer Model TM-T20II To reproduce the problem simply choose any pdf and then convert it to bytes and send it with the addCommand function and it will print a bunch of garbled characters.
Well, for people who may be having the same problem with the Epson SDK for android. I notify you that at this time it is not possible to directly print a pdf file. In order to print you must use all the commands that we have in the SDK, add text, add images, align, etc.. but you cannot send a pdf file directly. To do this, they will have to look for another option, in my case I am going to enable an old raspberry pi and configure it as a print server.