andrey-ushakov / esc_pos_utils

Basic Flutter/Dart classes for ESC/POS printing
BSD 3-Clause "New" or "Revised" License
151 stars 339 forks source link

ITF barcode output is wrong #99

Open diegorkalschne opened 1 year ago

diegorkalschne commented 1 year ago

I'm trying to print an ITF type barcode, with 44 digits. However, when printing the code, it is printed with only 40 digits (becoming incomplete).

Can anyone verify this behavior? Is there any solution for me to be able to print a barcode with 44 digits?

Versions and dependencies:

My code using esc_pos_utils:

final bardata = [8, 1, 6, 3, 0, 2, 3, 6, 4, 3, 0, 9, 8, 7, 7, 3, 5, 7, 6, 2, 0, 2, 3, 0, 5, 1, 0, 0, 3, 5, 0, 1, 0, 2, 1, 2, 0, 2, 3, 0, 1, 7, 0, 1];
    bytes += generator.barcode(Barcode.itf(bardata));