-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
While ESCPOS Reference says the n in GS w n is bound to 2-6 for TM-T88IV, real device testing reveals that it is also possible to pass 1 for a more compact barcode.
encoder
.initialize()
.codepage('auto')
.align('center')
.barcode('25-200-000001', 'code39', {width: 1, text: true})
.raw([0x1b, 0x61, 0x01, 0x1d, 0x68, 0x3c, 0x1d, 0x77, 0x01, 0x1d, 0x48, 0x02, 0x1d, 0x6b, 0x04, 0x32, 0x35, 0x2d, 0x32, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x00, 0x1b, 0x61, 0x00])
.raw([0x1b, 0x61, 0x01, 0x1d, 0x68, 0x3c, 0x1d, 0x77, 0x00, 0x1d, 0x48, 0x02, 0x1d, 0x6b, 0x04, 0x32, 0x35, 0x2d, 0x32, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x00, 0x1b, 0x61, 0x00])
.barcode('25-200-000001', 'code128', {width: 1, text: true})
.raw([0x1b, 0x61, 0x01, 0x1d, 0x68, 0x3c, 0x1d, 0x77, 0x01, 0x1d, 0x48, 0x02, 0x1d, 0x6b, 0x49, 0x0f, 0x7b, 0x42, 0x32, 0x35, 0x2d, 0x32, 0x30, 0x30, 0x2d, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x00, 0x1b, 0x61, 0x00])
.newline(2)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
