Commands
e = user defined error correction level (0 to 8), if it is 0 which means the error correction level will be set according to PDF417 specification. It will be assigned as per the following Table:
Error Correction | Number of Data |
Error Correction Level
CodewordsCodewords
0 | 2 | |
1 | 4 | |
2 | 8 | |
3 | 16 | |
4 | 32 | 161 |
5 | 64 | 320 |
6 | 128 | > 321 |
7 | 256 | |
8 | 512 |
m1 = the most significant byte of data length.
m2= the least significant byte of data length.
Total data length = m1 * 256 + m2
Example
GS ‘k’ 0x0E 0x0 0x0 0x0 0x0 0x23 “This is a PDF417 Test, test 1234567”
prints the following PDF417 image:
GS l Draw Line in Landscape Mode
Description
Draws a line in landscape mode. The thickness of the line is determined by the bit set by the bitmask, m.
Expression
ASCII | GS l n1 n2 L1 L2 m |
Decimal | 29 108 n1 n2 L1 L2 m |
Hex | 1D 6C n1 n2 L1 L2 m |
41