mjafartp / flutter_esc_pos_utils

Flutter package of esc/pos utils
GNU General Public License v3.0
26 stars 49 forks source link

ITF barcode output is wrong #15

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 flutter_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));