treh1966 / ESCPOS-Printing-in-Node.js

This is my implementation of ESCPOS Printing from within node nw.js applications
MIT License
23 stars 9 forks source link

Printing image issues : horizontal lines #6

Open MaxJunior opened 7 years ago

MaxJunior commented 7 years ago

Hi, currently, i am using this module in project.I have been trying to print a image but no matter the format that i use, i am having the same problem in the printing process : the result have horizontal lines with missing spots . The printer is working fine.

Can someone give me a help ?

treh1966 commented 7 years ago

@MaxJunior Tadaaaa, you are actually the first one admitting that he is using my code... Experienced similar troubles, and blamed it on the printer as the blank lines were not always there, but i will try to ionvestigate it

treh1966 commented 7 years ago

Sorry hit the wromg button

MaxJunior commented 7 years ago

Ahaha, the code works fine. The only bug that i detected was in printing images. Thank you for you answer. If you fix this problem, please, let me know.

MaxJunior commented 7 years ago

Hi, again, adding this line of code improves the quality of printed image. But the image still have 1 or 2 blank lines : Printer.append(Printer.ESCPOS_CMD.LINE_SPACE(24));

KalpeshPopat commented 2 years ago

Thank your tip on line spacing saved my day, i am using my own code but couldn't get around horizontal spacing in the image. And it is i guess only visible in certain printers where the default line spacing is geared for printing text.