sunmi_printer icon indicating copy to clipboard operation
sunmi_printer copied to clipboard

New version come! 4.0.0

Open brasizza opened this issue 1 year ago • 5 comments

Changelog

4.0.0#

A WHOLE NEW package (minor break change)

One important breakchange is the column in printRow.

I was needed to improve this method to get the benefits of the implementation.

  • The older version (from aidl) , sometimes that was not possible to print arabic or chinese text, now it is!
  • The other improvment: now in printRow you can send a whole sunmiStyle to do a new cusomization as you need!

brasizza avatar Nov 25 '24 17:11 brasizza

It seems like v4.0 does not support label printing, correct? I really depend on that function - and using the current master branch directly from git does not work, throwing the same error like in issue #3. I am using the library with a SunMi V2 Pro with label printer. Thanks for any help in advance!

jannis6023 avatar Mar 10 '25 16:03 jannis6023

It seems like v4.0 does not support label printing, correct? I really depend on that function - and using the current master branch directly from git does not work, throwing the same error like in issue #3. I am using the library with a SunMi V2 Pro with label printer. Thanks for any help in advance!

You are right, i didnt put the canvasApi to print labels , because i dont have the equipment to test it, i will try to implement the canvasApi but i cant test, so if you can reach my by email , i can put a version at github for you to test it if its ok for you!

brasizza avatar Mar 10 '25 16:03 brasizza

Ok, no problem! If you could try, that would be great! I will then test it on my device. Do you know whether I have to use the TSPL for building labels or if I can do that using the SDK directly, or using "normal" ESC/POS? That's something I haven't been able to look into until now...

jannis6023 avatar Mar 10 '25 17:03 jannis6023

And: What further information do you need?

jannis6023 avatar Mar 10 '25 17:03 jannis6023

Ok, no problem! If you could try, that would be great! I will then test it on my device. Do you know whether I have to use the TSPL for building labels or if I can do that using the SDK directly, or using "normal" ESC/POS? That's something I haven't been able to look into until now...

The package has a method called printTSPL i think if your device accept tspl you can use it

brasizza avatar Mar 11 '25 09:03 brasizza