Printing long images over remote-pay-cloud is very slow
When print short images (380px x 380px for example), it is pretty quick, it takes about 3 seconds to complete from the point the API called.
When printing images than that, it take much longer. For example, printing 380px x 1600px images (4 times longer) takes almost 1 minute to complete printing. The actual times the printer does the printing/rolling the paper is short, few seconds, but the time between the API called and the time the paper start rolling is very long, 50+ seconds
What is the problem, and is there workaround or way to fix it?
The reason it takes so long to print an image of such a size is due to the way the image is broken up and sent over the wire. There is not currently a way to get around it.
To give you a comparison, I printed out an image roughly 1/20th the size of the image you sent me. Looking at the logs, two messages were sent over the wire totaling a size of ~50,000 characters. When I printed out the image you sent me, it required 23 messages totaling a size of ~1,050,000 characters.
If you are just printing text, you may find it more beneficial to use the connector.printText() function.
We print only text, but want to format the text in various ways and places to let readers easy to pick up most important pieces of data. Namely: different font size, font style (bold), and especially text alignment (left, right, justified), similar to how Clover prints its receipts/reports.
We can't do that with .printText() since it only accepts plain text, and it uses various with font so we can't align text properly using space characters