admin管理员组

文章数量:1122846

I work with Epson ESC/POS printers (TM-H6000 III). My goal is to print rather big base 64 PNGs. I managed to transform my PNGs into monochrome bitmaps.

I can print them successfully using GS V 0 command using this code if they are smaller than the buffer (4096 bytes). If they are larger, I can cut them into multiple small bitmaps and send them one after another to reconstitute the full picture. However, I have to wait about one second between each call to GS V 0 otherwise the printer bugs and prints nonsense. It makes printing a big image very slow.

I also tried GS ( L but couldn't make it work. ESC * almost works, it prints very fast, the problem is that my picture is cut by white bands (Cf.: ) and random text and I don't know what I'm doing wrong. I can't get GS D to work at all.

What is the correct way to print a large bitmap in a reasonable time?

本文标签: javaESCPOS print large bitmap fastStack Overflow