1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
|
%% $Id: pst-barcode-doc.tex 445 2017-04-19 11:13:52Z herbert $
\section{Symbology Reference}\label{symbology-reference}
\subsection{Point of Sale}\label{point-of-sale}
\hypertarget{ean-13}{\subsubsection{EAN-13}\label{ean-13}}
\textbf{EAN-13} is an extension of the \protect\hyperlink{upc-a}{UPC-A}
barcode symbology that usually carries a GTIN-13. It was designed by the
International Article Numbering Association in 1976 for identification
of retail goods at point of sale outside of the US.
Also known as: EAN, UCC-13, European Article Number, International
Article Number, JAN, JAN-13.
Variants:
\begin{itemize}
\tightlist
\item
EAN-13+2 is an extension of EAN-13 that includes a
\protect\hyperlink{ean-2}{two-digit add-on}.
\item
EAN-13+5 is an extension of EAN-13 that includes a
\protect\hyperlink{ean-5}{five-digit add-on}.
\item
EAN-99 is a special form of EAN-13 starting with \texttt{99} that is
used as an in-store coupon.
\item
\protect\hyperlink{ean-8}{EAN-8} is a barcode symbology derived from
EAN-13 that is designed for small packaging. It uses a distinct
numbering system based on GTIN-8.
\item
\protect\hyperlink{isbn}{ISBN} is a variant of EAN-13 used to identify
books.
\item
\protect\hyperlink{ismn}{ISMN} is a variant of EAN-13 used to identify
printed music.
\item
\protect\hyperlink{issn}{ISSN} is a variant of EAN-13 used to identify
periodicals.
\item
\protect\hyperlink{gs1-composite-symbols}{EAN-13 Composite} is a
variant of EAN-13 that should be used when a CC-A or CC-B GS1
Composite 2D component is required.
\end{itemize}
Standards: ISO/IEC 15420, BS EN 797, GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options}
\begin{itemize}
\tightlist
\item
The data field for a EAN-13 may contain twelve or thirteen digits,
optionally followed by a space then two or five digits if an
\protect\hyperlink{ean-2}{EAN-2} or \protect\hyperlink{ean-5}{EAN-5}
add-on is required.
\item
If twelve digits of primary data are supplied then the check digit is
calculated automatically. Otherwise the provided check digit must be
correct.
\item
The \textbf{includetext} option should normally be supplied.
\item
The \textbf{guardwhitespace} option enables the display of whitespace
guard marks.
\end{itemize}
\paragraph{Examples}\label{examples}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 9771473968012
Options: includetext guardwhitespace
Encoder: ean13
\end{verbatim}
\begin{verbatim}
Data: 977147396801
Options: includetext guardwhitespace
Encoder: ean13
\end{verbatim}
\includegraphics{images/ean13-1.eps}
A symbol that includes a \protect\hyperlink{ean-5}{five-digit add-on}:
\begin{verbatim}
Data: 9771473968012 54499
Options: includetext guardwhitespace
Encoder: ean13
\end{verbatim}
\includegraphics{images/ean13-2.eps}
\hypertarget{ean-8}{\subsubsection{EAN-8}\label{ean-8}}
\textbf{EAN-8} is derived from the \protect\hyperlink{ean-13}{EAN-13}
barcode symbology and is designed for small packaging. It usually
carries a GTIN-8.
Also known as: UCC-8, JAN-8.
Variants:
\begin{itemize}
\tightlist
\item
EAN-8+2 is an extension of EAN-8 that includes a
\protect\hyperlink{ean-2}{two-digit add-on}.
\item
EAN-8+5 is an extension of EAN-8 that includes a
\protect\hyperlink{ean-5}{five-digit add-on}.
\item
EAN-Velocity is a special form of EAN-8 starting with \texttt{0} that
is used for in-store coupons.
\item
\protect\hyperlink{ean-13}{EAN-13} is a longer variant of EAN-8 which
has a distinct number system based on GTIN-13.
\item
\protect\hyperlink{gs1-composite-symbols}{EAN-8 Composite} is a
variant of EAN-8 that should be used when a CC-A or CC-B GS1 composite
2D component is required.
\end{itemize}
Standards: ISO/IEC 15420, BS EN 797, GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-1}
\begin{itemize}
\tightlist
\item
The data field takes either seven or eight digits, optionally followed
by a space then two or five digits if an
\protect\hyperlink{ean-2}{EAN-2} or \protect\hyperlink{ean-5}{EAN-5}
add-on is required.
\item
If seven digits of primary data are supplied then the check digit is
calculated automatically. Otherwise the provided check digit must be
correct.
\item
The \textbf{includetext} option should normally be supplied.
\item
The \textbf{guardwhitespace} option enables the display of white space
guard marks.
\end{itemize}
\paragraph{Examples}\label{examples-1}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 01335583
Options: includetext
Encoder: ean8
\end{verbatim}
\begin{verbatim}
Data: 0133558
Options: includetext
Encoder: ean8
\end{verbatim}
\includegraphics{images/ean8-1.eps}
Truncated with white space guards:
\begin{verbatim}
Data: 01335583
Options: includetext height=0.5 guardwhitespace
Encoder: ean8
\end{verbatim}
\includegraphics{images/ean8-2.eps}
\hypertarget{upc-a}{\subsubsection{UPC-A}\label{upc-a}}
The \textbf{UPC-A} barcode symbology is used for identification of
retail goods at point of sale inside of the US. It usually carries a
GTIN-12.
Also known as: UPC, UCC-12, Universal Product Code.
Variants:
\begin{itemize}
\tightlist
\item
UPC-A+2 is an extension of UPC-A that includes a
\protect\hyperlink{ean-2}{two-digit add-on}.
\item
UPC-A+5 is an extension of UPC-A that includes a
\protect\hyperlink{ean-5}{five-digit add-on}.
\item
\protect\hyperlink{upc-e}{UPC-E} is a barcode symbology derived from
UPC-A that is designed for small packaging.
\item
\protect\hyperlink{gs1-composite-symbols}{UPC-A Composite} is a
variant of UPC-A that should be used when a CC-A or CC-B
\protect\hyperlink{gs1-composite-symbols}{GS1 composite} 2D component
is required.
\item
A UPC-A symbol can be converted to an
\protect\hyperlink{ean-13}{EAN-13} symbol by prefixing the GTIN-12
with 0 to make the equivalent GTIN-13.
\end{itemize}
Standards: ISO/IEC 15420, BS EN 797, GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-2}
\begin{itemize}
\tightlist
\item
The data field for a UPC-A may contain eleven or twelve digits,
optionally followed by a space then two or five digits if an
\protect\hyperlink{ean-2}{EAN-2} or \protect\hyperlink{ean-5}{EAN-5}
add-on is required.
\item
Alternatively, the data field may contain seven or eight digits of a
\protect\hyperlink{upc-e}{UPC-E} to produce the equivalent UPC-A
symbol.
\item
If eleven digits of primary data are supplied then the check digit is
calculated automatically. Otherwise the provided check digit must be
correct.
\item
The \textbf{includetext} option should normally be supplied.
\end{itemize}
\paragraph{Examples}\label{examples-2}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 788581014974
Options: includetext
Encoder: upca
\end{verbatim}
\begin{verbatim}
Data: 78858101497
Options: includetext
Encoder: upca
\end{verbatim}
\includegraphics{images/upca-1.eps}
A symbol that includes a \protect\hyperlink{ean-5}{five-digit add-on}:
\begin{verbatim}
Data: 788581014974 54499
Options: includetext guardwhitespace
Encoder: upca
\end{verbatim}
\includegraphics{images/upca-2.eps}
\hypertarget{upc-e}{\subsubsection{UPC-E}\label{upc-e}}
\textbf{UPC-E} is a compacted form of the
\protect\hyperlink{upc-a}{UPC-A} barcode symbology that usually carries
a GTIN-12 with a number system of \emph{0} or \emph{1} that has been
zero compressed.
Variants:
\begin{itemize}
\tightlist
\item
UPC-E0 is a UPC-E with a number system of \emph{0}.
\item
UPC-E1 is a UPC-E with a number system of \emph{1}.
\item
UPC-E+2 is an extension of UPC-E that includes a
\protect\hyperlink{ean-2}{two-digit add-on}.
\item
UPC-E+5 is an extension of UPC-E that includes a
\protect\hyperlink{ean-5}{five-digit add-on}.
\item
\protect\hyperlink{upc-a}{UPC-A} is the full size form of UPC-E.
\item
\protect\hyperlink{gs1-composite-symbols}{UPC-E Composite} is a
variant of UPC-E that should be used when a CC-A or CC-B GS1 Composite
2D component is required.
\end{itemize}
Standards: ISO/IEC 15420, BS EN 797, GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-3}
\begin{itemize}
\tightlist
\item
The data field takes either seven or eight digits, optionally followed
by a space then two or five digits if an
\protect\hyperlink{ean-2}{EAN-2} or \protect\hyperlink{ean-5}{EAN-5}
add-on is required.
\item
Alternatively, the data field may contain eleven or twelve digits of a
\protect\hyperlink{upc-a}{UPC-A} to produce the equivalent UPC-E
symbol, provided that the input can be zero suppressed.
\item
If seven digits of primary data are supplied then the check digit is
calculated automatically. Otherwise the provided check digit must be
correct.
\item
The \textbf{includetext} option should normally be supplied.
\end{itemize}
\paragraph{Examples}\label{examples-3}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 01234565
Options: includetext
Encoder: upce
\end{verbatim}
\begin{verbatim}
Data: 0123456
Options: includetext
Encoder: upce
\end{verbatim}
\includegraphics{images/upce-1.eps}
A truncated symbol:
\begin{verbatim}
Data: 01234565
Options: includetext height=0.5
Encoder: upce
\end{verbatim}
\includegraphics{images/upce-2.eps}
\hypertarget{isbn}{\subsubsection{ISBN}\label{isbn}}
An \textbf{ISBN} barcode is a variant of
\protect\hyperlink{ean-13}{EAN-13} that is used to identify books.
Also known as: ISBN-13, International Standard Book Number, Bookland
EAN-13.
Variants:
\begin{itemize}
\tightlist
\item
ISBN-10 is a legacy format that was depreciated for public use after
1st January 2007.
\end{itemize}
Standards: ISO 2108, ISO/IEC 15420, BS EN 797, GS1 General
Specifications.
\paragraph{Data and Options}\label{data-and-options-4}
\begin{itemize}
\tightlist
\item
The data should contain twelve or thirteen digits separated
appropriately by dash characters \emph{-}.
\item
The data can also be provided in legacy ISBN-10 format as nine or ten
digits separated appropriately by dash characters \emph{-}. This will
be automatically upgraded to the ISBN-13 format.
\item
If the last digit of the primary data is not given then the ISBN check
digit is calculated automatically.
\item
The \textbf{legacy} option prevents ISBN-10 input from being upgraded
to ISBN-13 and will result in a symbol that is obsolete and should not
be used at point of sale.
\item
The primary data can optionally be followed by a space then two or
five digits if an \protect\hyperlink{ean-2}{EAN-2} or
\protect\hyperlink{ean-5}{EAN-5} add-on is required.
\item
The \textbf{includetext} option should normally be supplied.
\item
The \textbf{guardwhitespace} option enables the display of white space
guard marks.
\item
The following options are also relevant to this barcode symbology:
\begin{itemize}
\tightlist
\item
\textbf{isbntextfont}: Font name for text above symbol
\item
\textbf{isbntextsize}: Font size for the text above symbol, in
points
\item
\textbf{isbntextxoffset}: Horizontal position of ISBN text, in
points
\item
\textbf{isbntextyoffset}: Vertical position of ISBN text, in points
\end{itemize}
\end{itemize}
\paragraph{Example ISBN}\label{example-isbn}
Identical symbols, input provided with and without an ISBN check digit:
\begin{verbatim}
Data: 978-1-873671-00-9
Options: includetext
Encoder: isbn
\end{verbatim}
\begin{verbatim}
Data: 978-1-873671-00
Options: includetext
Encoder: isbn
\end{verbatim}
\includegraphics{images/isbn-1.eps}
An ISBN with a \protect\hyperlink{ean-5}{five-digit add-on}:
\begin{verbatim}
Data: 978-1-873671-00-9 54499
Options: includetext guardwhitespace
Encoder: isbn
\end{verbatim}
\includegraphics{images/isbn-2.eps}
The following ISBN-10 input will be automatically upgraded to a valid
ISBN-13 symbol:
\begin{verbatim}
Data: 1-86074-271-2
Options: includetext
Encoder: isbn
\end{verbatim}
\begin{verbatim}
Data: 1-86074-271
Options: includetext
Encoder: isbn
\end{verbatim}
\includegraphics{images/isbn-3.eps}
\paragraph{Example ISBN-10}\label{example-isbn-10}
Note that ISBN-10 is legacy format not for use at P.O.S.
The following will generate an obsolete ISBN-10 symbol:
\begin{verbatim}
Data: 1-86074-271-8
Options: legacy includetext guardwhitespace
Encoder: isbn
\end{verbatim}
\begin{verbatim}
Data: 1-86074-271
Options: legacy includetext guardwhitespace
Encoder: isbn
\end{verbatim}
\includegraphics{images/isbn-4.eps}
\hypertarget{ismn}{\subsubsection{ISMN}\label{ismn}}
An \textbf{ISMN} barcode is a variant of
\protect\hyperlink{ean-13}{EAN-13} with a prefix \emph{979} that is used
to identify printed music.
Also known as: International Standard Music Number, ISMN-13.
Variants:
\begin{itemize}
\tightlist
\item
ISMN-10 is a legacy format that was depreciated for public use.
\end{itemize}
Standards: ISO 10957, ISO/IEC 15420, BS EN 797, GS1 General
Specifications.
\paragraph{Data and Options}\label{data-and-options-5}
\begin{itemize}
\tightlist
\item
The data should contain twelve or thirteen digits separated
appropriately by dash characters \emph{-}.
\item
The data can also be provided in legacy ISMN-10 format start \emph{M-}
then eight or nine digits separated appropriately by dash characters
\emph{-}. This will be automatically upgraded to the ISMN-13 format.
\item
The \textbf{legacy} option prevents ISMN-10 input from being upgraded
to ISMN-13 and will result in a symbol that is obsolete and should not
be used at point of sale.
\item
If the last digit of the primary data is not given then the ISMN check
digit is calculated automatically.
\item
The primary data can optionally be followed by a space then two or
five digits if an \protect\hyperlink{ean-2}{EAN-2} or
\protect\hyperlink{ean-5}{EAN-5} add-on is required.
\item
The \textbf{includetext} option should normally be supplied.
\item
The \textbf{guardwhitespace} option enables the display of white space
guard marks.
\item
The following options are also relevant to this barcode symbology:
\begin{itemize}
\tightlist
\item
\textbf{ismntextfont}: Font name for text above symbol
\item
\textbf{ismntextsize}: Font size for the text above symbol, in
points
\item
\textbf{ismntextxoffset}: Horizontal position of ISMN text, in
points
\item
\textbf{ismntextyoffset}: Vertical position of ISMN text, in points
\end{itemize}
\end{itemize}
\paragraph{Example ISMN}\label{example-ismn}
Identical symbols, input provided with and without an ISMN check digit:
\begin{verbatim}
Data: 979-0-2600-0043-8
Options: includetext
Encoder: ismn
\end{verbatim}
\begin{verbatim}
Data: 979-0-2600-0043
Options: includetext
Encoder: ismn
\end{verbatim}
\includegraphics{images/ismn-1.eps}
The following ISMN-10 input will be automatically upgraded to a valid
ISMN-13 symbol:
\begin{verbatim}
Data: M-345-24680-5
Options: includetext
Encoder: ismn
\end{verbatim}
\begin{verbatim}
Data: M-345-24680
Options: includetext
Encoder: ismn
\end{verbatim}
\includegraphics{images/ismn-2.eps}
\paragraph{Example ISMN-10}\label{example-ismn-10}
Note that ISMN-10 is a legacy format not for use at P.O.S.
The following will generate an obsolete ISMN-10 symbol:
\begin{verbatim}
Data: M-345-24680-5
Options: legacy includetext guardwhitespace
Encoder: ismn
\end{verbatim}
\begin{verbatim}
Data: M-345-24680
Options: legacy includetext guardwhitespace
Encoder: ismn
\end{verbatim}
\includegraphics{images/ismn-3.eps}
\hypertarget{issn}{\subsubsection{ISSN}\label{issn}}
An \textbf{ISSN} barcode is an \protect\hyperlink{ean-13}{EAN-13} with
prefix \emph{977} used to identify periodicals.
Also known as: International Standard Serial Number.
Standards: ISO 3297, ISO/IEC 15420, BS EN 797, GS1 General
Specifications.
\paragraph{Data and Options}\label{data-and-options-6}
\begin{itemize}
\tightlist
\item
The data should contain the seven or eight digits ISSN separated by a
dash characters \emph{-}, followed by a two-digit sequence variant,
optionally followed by two or five digits if a
\protect\hyperlink{ean-2}{two-digit add-on} or
\protect\hyperlink{ean-5}{five-digit add-on} is required.
\item
If the last digit of the ISSN data is not given then the ISSN check
digit is calculated automatically.
\item
The \textbf{includetext} option should normally be supplied.
\item
The \textbf{guardwhitespace} option enables the display of white space
guard marks.
\item
The following options are also relevant to this barcode symbology:
\begin{itemize}
\tightlist
\item
\textbf{issntextfont}: Font name for text above symbol
\item
\textbf{issntextsize}: Font size for the text above symbol, in
points
\item
\textbf{issntextxoffset}: Horizontal position of ISSN text, in
points
\item
\textbf{issntextyoffset}: Vertical position of ISSN text, in points
\end{itemize}
\end{itemize}
A sequence variant is a two-digit number that usually starts at zero and
is incremented whenever the recommended retail price is amended, where
applicable.
\paragraph{Example}\label{example}
Identical symbols, input provided with and without an ISSN check digit
and having sequence number \emph{00}:
\begin{verbatim}
Data: 0317-8471 00
Options: includetext guardwhitespace
Encoder: issn
\end{verbatim}
\begin{verbatim}
Data: 0317-847 00
Options: includetext guardwhitespace
Encoder: issn
\end{verbatim}
\includegraphics{images/issn-1.eps}
An ISSN with sequence number \emph{03} and a
\protect\hyperlink{ean-2}{two-digit add-on} representing issue number
\emph{17}:
\begin{verbatim}
Data: 0317-8471 03 17
Options: includetext guardwhitespace
Encoder: issn
\end{verbatim}
\begin{verbatim}
Data: 0317-847 03 17
Options: includetext guardwhitespace
Encoder: issn
\end{verbatim}
\includegraphics{images/issn-2.eps}
\subsection{Two-Dimensional}\label{two-dimensional}
\hypertarget{aztec-code}{\subsubsection{Aztec Code}\label{aztec-code}}
\textbf{Aztec Code} is a 2D matrix-style barcode symbology. It can
encode full 256-character extended-ASCII.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{aztec-runes}{Aztec Runes} are a set of small
barcode symbols that are used for special applications.
\end{itemize}
Standards: ISO/IEC 24778, ANSI/AIM BC13 - ISS Aztec Code.
\paragraph{Data and Options}\label{data-and-options-7}
\begin{itemize}
\tightlist
\item
The data field can contain any extended ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The \textbf{eclevel} option is used to specify the percentage of error
correction to be applied when expanding the data, by default
\texttt{23}.
\item
The \textbf{ecaddchars} option is used to specify how many additional
error correction characters to apply the data once expanded by the
eclevel percentage, by default \texttt{3}.
\item
The \textbf{layers} option is used to specify a particular number of
layers in which to encode the data, between \texttt{1} and
\texttt{32}. By default the encoder will create a symbol with be
minimal number of layers to encode the given data.
\item
The \textbf{format} option is used to select between
\texttt{format=full} and \texttt{format=compact} symbol types. By
default the encoder will choose the most appropriate format to create
a symbol of minimal size.
\item
\emph{Deprecated: Use \protect\hyperlink{aztec-runes}{Aztec Runes}
instead. The \textbf{format} option can also be used to create Aztec
Code ``runes'', using \texttt{format=rune}. In this case the rune
symbol number should be given in the data field.}
\item
The \textbf{readerinit} option denotes that the symbol is used for
programming the barcode reader.
\item
The \textbf{raw} option denotes that the data field is providing the
input as a pre-encoded bitstream suitable for direct low-level
encoding.
\end{itemize}
\paragraph{Examples}\label{examples-4}
\begin{verbatim}
Data: This is Aztec Code
Options:
Encoder: azteccode
\end{verbatim}
\includegraphics{images/aztec-1.eps}
\begin{verbatim}
Data: This is ^065ztec Code
Options: parse eclevel=50 ecaddchars=0
Encoder: azteccode
\end{verbatim}
\includegraphics{images/aztec-6.eps}
\begin{verbatim}
Data: ABC123
Options: layers=3 format=full
Encoder: azteccode
\end{verbatim}
\includegraphics{images/aztec-2.eps}
\begin{verbatim}
Data: ABC123
Options: format=compact
Encoder: azteccode
\end{verbatim}
\includegraphics{images/aztec-5.eps}
\begin{verbatim}
Data: 00100111001000000101001101111000010100111100101000000110
Options: raw
Encoder: azteccode
\end{verbatim}
\includegraphics{images/aztec-4.eps}
\hypertarget{aztec-runes}{\subsubsection{Aztec
Runes}\label{aztec-runes}}
\textbf{Aztec Runes} are a set of small barcode symbols that are used
for special applications.
Variants:
\protect\hyperlink{aztec-code}{Aztec Code} is a 2D matrix-style barcode
symbology that can encode full 256 character extended-ASCII.
Standards: ISO/IEC 24778, ANSI/AIM BC13 - ISS Aztec Code.
\paragraph{Data and Options}\label{data-and-options-8}
\begin{itemize}
\tightlist
\item
The data field contains the rune number \texttt{0} to \texttt{255}.
\end{itemize}
\paragraph{Examples}\label{examples-5}
\begin{verbatim}
Data: 25
Options:
Encoder: aztecrune
\end{verbatim}
\includegraphics{images/aztec-3.eps}
\hypertarget{data-matrix}{\subsubsection{Data
Matrix}\label{data-matrix}}
The \textbf{Data Matrix} symbology is 2D matrix-style barcode that can
encode full 256 character extended-ASCII.
Also known as: Data Matrix ECC 200.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-datamatrix}{GS1 DataMatrix} is a variant of
Data Matrix that should be used when encoding data that is in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format}.
\item
\protect\hyperlink{hibc-symbols}{HIBC Data Matrix} is a variant of
Data Matrix that should be used when encoding HIBC formatted data.
\end{itemize}
Standards: ISO/IEC 16022, ANSI/AIM BC11 - ISS Data Matrix.
\paragraph{Data and Options}\label{data-and-options-9}
\begin{itemize}
\tightlist
\item
The data field can contain any extended ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value. This is useful for specifying unprintable characters.
\item
When the \textbf{parsefnc} option is specified, non-data function
characters can be specified by \texttt{\^{}FNC1}, \texttt{\^{}PROG},
\texttt{\^{}MAC5}, \texttt{\^{}MAC6}.
\item
The \textbf{format} option is used to specify the shape of the symbol,
either \texttt{square} (default) or \texttt{rectangle}.
\item
The \textbf{dmre} option enable Data Matrix Rectangular Extension with
increases the number of rectangular symbol sizes available.
\item
The \textbf{columns} and \textbf{rows} options are used to specify the
size of the symbol.
\item
The \textbf{version} option can also be used to specify the symbol
size, as \texttt{version=RxC}. Valid options are:
\begin{itemize}
\tightlist
\item
With \texttt{format=square}: \emph{10x10}, \emph{12x12},
\emph{14x14}, \emph{16x16}, \emph{18x18}, \emph{20x20},
\emph{22x22}, \emph{24x24}, \emph{26x26}, \emph{32x32},
\emph{36x36}, \emph{40x40}, \emph{44x44}, \emph{48x48},
\emph{52x52}, \emph{64x64}, \emph{72x72}, \emph{80x80},
\emph{88x88}, \emph{96x96}, \emph{104x104}, \emph{120x120},
\emph{132x132}, \emph{144x144}
\item
With \texttt{format=rectangle}: \emph{8x18}, \emph{8x32},
\emph{12x26}, \emph{12x36}, \emph{16x36}, \emph{16x48}
\item
With \texttt{format=rectangle} and \texttt{dmre}: \emph{8x18},
\emph{8x32}, \emph{8x48}, \emph{8x64}, \emph{12x26}, \emph{12x36},
\emph{12x64}, \emph{16x36}, \emph{16x48}, \emph{16x64},
\emph{24x32}, \emph{24x36}, \emph{24x48}, \emph{24x64},
\emph{26x32}, \emph{26x40}, \emph{26x48}, \emph{26x64}
\end{itemize}
\item
If \textbf{columns}, \textbf{rows} and \textbf{version} are
unspecified the encoder will default to creating a symbol of the
specified \textbf{format} that is the minimum size to represent the
given data.
\end{itemize}
\paragraph{Examples}\label{examples-6}
\begin{verbatim}
Data: This is Data Matrix
Options:
Encoder: datamatrix
\end{verbatim}
\begin{verbatim}
Data: This is ^068ata Matrix
Options: parse
Encoder: datamatrix
\end{verbatim}
\includegraphics{images/datamatrix-1.eps}
\begin{verbatim}
Data: Fixed size
Options: rows=48 columns=48
Encoder: datamatrix
\end{verbatim}
\includegraphics{images/datamatrix-2.eps}
\begin{verbatim}
Data: Rectangular
Options: format=rectangle version=16x48
Encoder: datamatrix
\end{verbatim}
\includegraphics{images/datamatrix-3.eps}
\subsubsection{Han Xin Code}\label{han-xin-code}
The \textbf{Han Xin Code} symbology is a 2D matrix-style barcode
symbology that can encode full 256 character extended-ASCII.
Also known as: Chinese Sensible.
Standards: GB/T 21049-2007.
\paragraph{Data and Options}\label{data-and-options-10}
\begin{itemize}
\tightlist
\item
The data field can contain any extended ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The \textbf{eclevel} option is used to specify the error correction
level:
\begin{itemize}
\tightlist
\item
\texttt{eclevel=L1} - Lowest
\item
\texttt{eclevel=L2}
\item
\texttt{eclevel=L3}
\item
\texttt{eclevel=L4} - Highest
\end{itemize}
\item
The \textbf{version} option is used to specify the size of the symbol,
1 to 84.
\item
If unspecified the encoder will select the version of the symbol that
is the minimum size to represent the given data at the selected error
correction level.
\end{itemize}
\paragraph{Examples}\label{examples-7}
\begin{verbatim}
Data: Han Xin Code
Options: version=10 eclevel=L4
Encoder: hanxin
\end{verbatim}
\includegraphics{images/hanxin-1.eps}
\hypertarget{micropdf417}{\subsubsection{MicroPDF417}\label{micropdf417}}
The \textbf{MicroPDF417} barcode symbology is 2D stacked-linear barcode
based on \protect\hyperlink{pdf417}{PDF417} that can encode full 256
character extended-ASCII.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{pdf417}{PDF417} is a larger variant of the
MicroPDF417 barcode.
\item
\protect\hyperlink{hibc-symbols}{HIBC MicroPDF417} is a variant of
MicroPDF417 that should be used when encoding HIBC formatted data.
\end{itemize}
Standards: ISO/IEC 24728, AIM ISS - MicroPDF417.
\paragraph{Data and Options}\label{data-and-options-11}
\begin{itemize}
\tightlist
\item
The data field can contain any extended ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The \textbf{columns} and \textbf{rows} options are used to specify the
size of the symbol. Valid values are:
\begin{itemize}
\tightlist
\item
\emph{1x11}, \emph{1x14}, \emph{1x17}, \emph{1x20}, \emph{1x24},
\emph{1x28}, \emph{2x8}, \emph{2x11}, \emph{2x14}, \emph{2x17},
\emph{2x20}, \emph{2x23}, \emph{2x26}, \emph{3x6}, \emph{3x8},
\emph{3x10}, \emph{3x12}, \emph{3x15}, \emph{3x20}, \emph{3x26},
\emph{3x32}, \emph{3x38}, \emph{3x44}, \emph{4x4}, \emph{4x6},
\emph{4x8}, \emph{4x10}, \emph{4x12}, \emph{4x15}, \emph{4x20},
\emph{4x26}, \emph{4x32}, \emph{4x38}, \emph{4x44}
\end{itemize}
\item
If the \textbf{columns} and \textbf{rows} are unspecified the encoder
will default to creating a symbol that is the minimum size to
represent the given data.
\item
The \textbf{rowmult} option is used to specify how tall each bar is,
with respect to the minimum module width. The default is 3.
\item
The \textbf{raw} option denotes that the data field is providing the
input as a pre-encoded codewords in \texttt{\^{}NNN} format, suitable
for direct low-level encoding.
\item
The \textbf{cca} option identifies this symbol as a \emph{CC-A} 2D
component of a \protect\hyperlink{gs1-composite-symbols}{GS1
Composite} symbol.
\item
The \textbf{ccb} option identifies this symbol as a \emph{CC-B} 2D
component of a \protect\hyperlink{gs1-composite-symbols}{GS1
Composite} symbol.
\item
Note: Special size rules apply when the \textbf{cca} option is given,
in which case the \textbf{columns} and \textbf{rows} options that are
used to specify the size of the symbol must be one of:
\begin{itemize}
\tightlist
\item
\emph{2x5}, \emph{2x6}, \emph{2x7}, \emph{2x8}, \emph{2x9},
\emph{2x10}, \emph{2x12}, \emph{3x4}, \emph{3x5}, \emph{3x6},
\emph{3x7}, \emph{3x8}, \emph{4x3}, \emph{4x4}, \emph{4x5},
\emph{4x6}, \emph{4x7}
\end{itemize}
\end{itemize}
\paragraph{Examples}\label{examples-8}
\begin{verbatim}
Data: MicroPDF417
Options:
Encoder: micropdf417
\end{verbatim}
\includegraphics{images/micropdf417-1.eps}
\begin{verbatim}
Data: MicroP^068F417
Options: parse rows=15 columns=4
Encoder: micropdf417
\end{verbatim}
\includegraphics{images/micropdf417-2.eps}
\hypertarget{pdf417}{\subsubsection{PDF417}\label{pdf417}}
The \textbf{PDF417} barcode symbology is 2D stacked-linear barcode that
can encode full 256 character extended-ASCII.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{compact-pdf417}{Compact PDF417} is a shortened form
of the PDF417 barcode that is used in applications where the space for
the symbol is restricted.
\item
\protect\hyperlink{micropdf417}{MicroPDF417} is a smaller variant of
the PDF417 barcode.
\item
\protect\hyperlink{hibc-symbols}{HIBC PDF417} is a variant of PDF417
that should be used when encoding HIBC formatted data.
\end{itemize}
Standards: ISO/IEC 15438, DD ENV 12925, AIM USS - PDF417.
\paragraph{Data and Options}\label{data-and-options-12}
\begin{itemize}
\tightlist
\item
The data field can contain any extended ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The \textbf{eclevel} option is used to specify the error correction
level, from 1 to 5. The default is to choose a standard level of error
correction that is determined by the encoded data length.
\item
The \textbf{columns} option specifies the number of columns (or groups
of bars) in the output symbol, from 1 to 30.
\item
The \textbf{rows} option specifies the minimum number of rows in the
symbol, from 3 to 90.
\item
If \textbf{rows} is unspecified the encoder will select a number that
creates a symbol that is the minimum size to represent the given data.
\item
The \textbf{rowmult} option is used to specify how tall each bar is,
with respect to the minimum module width. The default is 3.
\item
\emph{Deprecated: Use \protect\hyperlink{compact-pdf417}{Compact
PDF417} instead. The \textbf{compact} option is used to create a
compact/truncated PDF417 symbol that has fewer bars per row that a
standard symbol and hence is more narrow.}
\item
The \textbf{raw} option denotes that the data field is providing the
input as a pre-encoded codewords in \texttt{\^{}NNN} format, suitable
for direct low-level encoding.
\item
The \textbf{ccc} option identifies this symbol as a \emph{CC-C} 2D
component of a \protect\hyperlink{gs1-composite-symbols}{GS1
Composite} symbol.
\end{itemize}
\paragraph{Examples}\label{examples-9}
\begin{verbatim}
Data: PDF417
Options:
Encoder: pdf417
\end{verbatim}
\includegraphics{images/pdf417-1.eps}
\begin{verbatim}
Data: P^068F417
Options: parse columns=2 rows=15
Encoder: pdf417
\end{verbatim}
\includegraphics{images/pdf417-2.eps}
\begin{verbatim}
Data: Strong error correction
Options: columns=2 eclevel=5
Encoder: pdf417
\end{verbatim}
\includegraphics{images/pdf417-4.eps}
\begin{verbatim}
Data: ^453^178^121^239
Options: raw columns=2
Encoder: pdf417
\end{verbatim}
\includegraphics{images/pdf417-5.eps}
\hypertarget{compact-pdf417}{\subsubsection{Compact
PDF417}\label{compact-pdf417}}
\textbf{Compact PDF417} is a shortened form of the
\protect\hyperlink{pdf417}{PDF417} barcode that is used in applications
where the space for the symbol is restricted.
Also known as: Truncated PDF417
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{pdf417}{PDF417} is the larger, more popular
variant.
\item
\protect\hyperlink{micropdf417}{MicroPDF417} is a smaller variant of
the PDF417 barcode.
\item
\protect\hyperlink{hibc-symbols}{HIBC PDF417} is a variant of PDF417
that should be used when encoding HIBC formatted data.
\end{itemize}
Standards: ISO/IEC 15438, DD ENV 12925, AIM USS - PDF417.
\paragraph{Data and Options}\label{data-and-options-13}
\begin{itemize}
\tightlist
\item
The data field can contain any extended ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The \textbf{eclevel} option is used to specify the error correction
level, from 1 to 5. The default is to choose a standard level of error
correction that is determined by the encoded data length.
\item
The \textbf{columns} option specifies the number of columns (or groups
of bars) in the output symbol, from 1 to 30.
\item
The \textbf{rows} option specifies the minimum number of rows in the
symbol, from 3 to 90.
\item
If \textbf{rows} is unspecified the encoder will select a number that
creates a symbol that is the minimum size to represent the given data.
\item
The \textbf{rowmult} option is used to specify how tall each bar is,
with respect to the minimum module width. The default is 3.
\item
The \textbf{raw} option denotes that the data field is providing the
input as a pre-encoded codewords in \texttt{\^{}NNN} format, suitable
for direct low-level encoding.
\end{itemize}
\paragraph{Examples}\label{examples-10}
\begin{verbatim}
Data: A truncated PDF417
Options: columns=4
Encoder: pdf417compact
\end{verbatim}
\includegraphics{images/pdf417-3.eps}
\hypertarget{qr-code}{\subsubsection{QR Code}\label{qr-code}}
The \textbf{QR Code} symbology is a 2D matrix-style barcode symbology
that can encode full 256 character extended-ASCII.
Also known as: Quick Response Code.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{micro-qr-code}{Micro QR Code} is a small QR Code
that is used in applications that require a small symbol space.
\item
\protect\hyperlink{gs1-qr-code}{GS1 QR Code} is a variant of Data
Matrix that should be used when encoding data that is in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format}.
\item
\protect\hyperlink{hibc-symbols}{HIBC QR Code} is a variant of QR Code
that should be used when encoding HIBC formatted data.
\end{itemize}
Standards: ISO/IEC 18004, JIS X 0510, ITS - QR Code, AIM ISS - QR Code.
\paragraph{Data and Options}\label{data-and-options-14}
\begin{itemize}
\tightlist
\item
The data field can contain any extended ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The \textbf{eclevel} option is used to specify the error correction
level:
\begin{itemize}
\tightlist
\item
\texttt{eclevel=L} - Low
\item
\texttt{eclevel=M} - Medium (default)
\item
\texttt{eclevel=Q} - Quality
\item
\texttt{eclevel=H} - High
\end{itemize}
\item
The \textbf{version} option is used to specify the size of the symbol,
1 to 40.
\item
If unspecified the encoder will select the version of the symbol that
is the minimum size to represent the given data at the selected error
correction level.
\item
The \textbf{format} option is used to select between
\texttt{format=full} and \texttt{format=micro} (deprecated) symbol
types. Alternatively, \texttt{format=any} will select the optimal
symbol format for the given data. By default \emph{full} format
symbols will be generated.
\item
Note: It is recommended that the
\protect\hyperlink{micro-qr-code}{Micro QR Code} encoder is used for
such symbols.
\end{itemize}
\paragraph{Examples}\label{examples-11}
\begin{verbatim}
Data: QR Code
Options:
Encoder: qrcode
\end{verbatim}
\begin{verbatim}
Data: QR ^067ode
Options: parse
Encoder: qrcode
\end{verbatim}
\includegraphics{images/qrcode-1.eps}
\begin{verbatim}
Data: QR CODE 1234
Options: version=10 eclevel=Q
Encoder: qrcode
\end{verbatim}
\includegraphics{images/qrcode-2.eps}
\hypertarget{micro-qr-code}{\subsubsection{Micro QR
Code}\label{micro-qr-code}}
The \textbf{Micro QR Code} symbology is a smaller variant of
\protect\hyperlink{qr-code}{QR Code} that is used in applications that
require a small symbol space.
Also known as: Micro Quick Response Code.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{qr-code}{QR Code} is the more popular, larger
variant.
\end{itemize}
Standards: ISO/IEC 18004, JIS X 0510, ITS - QR Code, AIM ISS - QR Code.
\paragraph{Data and Options}\label{data-and-options-15}
\begin{itemize}
\tightlist
\item
The data field can contain any extended ASCII data and will select the
appropriate size symbol to work around the following restrictions:
\begin{itemize}
\tightlist
\item
An M1 symbol is only compatible with numeric data.
\item
An M2 symbol is only compatible with alphanumeric data.
\end{itemize}
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The \textbf{version} option is used to specify the size of the symbol,
either \texttt{version=M1}, \texttt{version=M2}, \texttt{version=M3}
or \texttt{version=M4}.
\item
The \textbf{eclevel} option is used to specify the error correction
level:
\begin{itemize}
\tightlist
\item
\texttt{eclevel=L} - Low (default)
\item
\texttt{eclevel=M} - Medium; Not compatible with M1 symbols
\item
\texttt{eclevel=Q} - Quality; Only compatible with M4 symbols
\end{itemize}
\item
If unspecified the encoder will select the version of the symbol that
is the minimum size to represent the given data at the selected error
correction level.
\end{itemize}
\paragraph{Examples}\label{examples-12}
\begin{verbatim}
Data: 01234567
Options:
Encoder: microqrcode
\end{verbatim}
\includegraphics{images/qrcode-5.eps}
\subsection{One-Dimensional}\label{one-dimensional}
\hypertarget{code-128}{\subsubsection{Code 128}\label{code-128}}
\textbf{Code 128} is an arbitrarily long, high-density barcode symbology
that can be used to encode full 256 character extended-ASCII.
Also known as: USD-6, USS-128, Code 128A, Code 128B, Code 128C.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-128}{GS1-128} is a variant of Code 128 that
should be used when encoding data that is in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format}.
\item
\protect\hyperlink{hibc-symbols}{HIBC Code 128} is a variant of Code
128 that should be used when encoding HIBC formatted data.
\end{itemize}
Standards: ISO/IEC 15417, ANSI/AIM BC4 - ISS Code 128, BS EN 799.
\paragraph{Data and Options}\label{data-and-options-16}
\begin{itemize}
\tightlist
\item
The input can consist of any extended ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII or extended-ASCII value, useful for specifying unprintable
characters, e.g. \texttt{\^{}029} for \emph{GS}, \texttt{\^{}209} for
\emph{Ñ}, etc.
\item
\emph{FNC4} function characters will be inserted automatically to
allow the encoding of extended ASCII characters.
\item
When the \textbf{parsefnc} option is specified, non-data function
characters can be specified by \texttt{\^{}FNC1} through
\texttt{\^{}FNC3}.
\item
When the \textbf{parsefnc} option is specified, the special pseudo
characters \texttt{\^{}LNKA} and \texttt{\^{}LNKC} at the end of the
symbol indicate that a GS1-128 symbol includes a \emph{CC-A/B} or
\emph{CC-C} GS1 composite 2D component.
\item
The \textbf{raw} option denotes that the data field is providing the
input as pre-encoded codewords in \texttt{\^{}NNN} format, suitable
for direct low-level encoding.
\item
The mandatory check digit is calculated automatically.
\end{itemize}
\paragraph{Example}\label{example-1}
\begin{verbatim}
Data: Count0123456789!
Options: includetext
Encoder: code128
\end{verbatim}
\includegraphics{images/code128-1.eps}
\hypertarget{code-39}{\subsubsection{Code 39}\label{code-39}}
The \textbf{Code 39} barcode symbology is discrete, variable length and
self-checking.
Also known as: Code 3 of 9, LOGMARS, Alpha39, USD-3, USS-39.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{code-39-extended}{Code 39 Extended} is a variant of
Code 39 that can be used to encode full 128 character ASCII with the
use of shift character combinations.
\item
\protect\hyperlink{hibc-symbols}{HIBC Code39} is a variant of Code 39
that should be used when encoding HIBC formatted data.
\item
AIM USD-2 is a subset of Code 39 containing the characters A-Z, 0-9,
\emph{space}, \texttt{-} and \texttt{.}.
\end{itemize}
Standards: ISO/IEC 16388, ANSI/AIM BC1 - USS Code 39, BS EN 800, MIL STD
1189.
\paragraph{Data and Options}\label{data-and-options-17}
\begin{itemize}
\tightlist
\item
The data field can hold any of the following:
\begin{itemize}
\tightlist
\item
Numbers 0-9
\item
Capital letters A-Z
\item
Symbols \texttt{-.\$/+\%*} and \emph{space}
\end{itemize}
\item
The \textbf{includecheck} option calculates the check digit.
\item
The \textbf{includecheckintext} option makes the calculated checksum
appear in the human readable text.
\item
The \textbf{hidestars} option suppresses the asterisks in the human
readable text.
\end{itemize}
\paragraph{Examples}\label{examples-13}
\begin{verbatim}
Data: CODE39
Options: includetext
Encoder: code39
\end{verbatim}
\includegraphics{images/code39-1.eps}
\begin{verbatim}
Data: CODE39
Options: includecheck includetext includecheckintext
Encoder: code39
\end{verbatim}
\includegraphics{images/code39-2.eps}
\begin{verbatim}
Data: CODE39
Options: hidestars includecheck includetext
Encoder: code39
\end{verbatim}
\includegraphics{images/code39-3.eps}
\hypertarget{code-39-extended}{\subsubsection{Code 39
Extended}\label{code-39-extended}}
The \textbf{Code 39 Extended} barcode symbology is discrete, variable
length and self-checking. It is based on
\protect\hyperlink{code-39}{Code 39} but can encode full 128 character
ASCII by using shift combinations.
Also known as: Code 39 Full ASCII.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{code-39}{Code 39} is a simpler variant of Code 39
Extended.
\end{itemize}
Standards: ISO/IEC 16388, ANSI/AIM BC1 - USS Code 39, BS EN 800.
\paragraph{Data and Options}\label{data-and-options-18}
\begin{itemize}
\tightlist
\item
The data field can consist of any ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters, e.g.
\texttt{\^{}029} for \emph{GS}, etc.
\item
The \textbf{includecheck} option calculates the check digit.
\item
The \textbf{includecheckintext} causes the calculated check digit to
appear in the human readable text.
\item
The \textbf{hidestars} option suppresses the asterisks in the human
readable text.
\end{itemize}
\paragraph{Examples}\label{examples-14}
\begin{verbatim}
Data: Code39 Ext!
Options: includetext includecheck
Encoder: code39ext
\end{verbatim}
\includegraphics{images/code39ext-1.eps}
\begin{verbatim}
Data: Code39^029Extended
Options: parse includecheck
Encoder: code39ext
\end{verbatim}
\includegraphics{images/code39ext-2.eps}
\hypertarget{code-93}{\subsubsection{Code 93}\label{code-93}}
\textbf{Code 93} is a continuous, variable length, self-checking barcode
symbology.
Also known as: USD-7, USS-93.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{code-93-extended}{Code 93 Extended} is a variant of
Code 93 that can be used to encode full 128 character ASCII with the
use of special shift character combinations.
\end{itemize}
Standards: ANSI/AIM BC5 - USS Code 93, ITS 93i.
\paragraph{Data and Options}\label{data-and-options-19}
\begin{itemize}
\tightlist
\item
The data field can hold any of the following:
\begin{itemize}
\tightlist
\item
Numbers 0-9
\item
Capital letters A-Z
\item
Symbols \texttt{-.\$/+\%*} and \emph{space}
\end{itemize}
\item
The \textbf{parsefnc} option allows the special shift characters to be
supplied as \texttt{\^{}SFT\$}, \texttt{\^{}SFT\%}, \texttt{\^{}SFT/}
and \texttt{\^{}SFT+}.
\item
The \textbf{includecheck} option calculates the two check digits.
\end{itemize}
\paragraph{Examples}\label{examples-15}
\begin{verbatim}
Data: CODE93
Options: includecheck
Encoder: code93
\end{verbatim}
\includegraphics{images/code93-1.eps}
Code 93 including a special shift combination \texttt{(/)A} representing
\emph{!}:
\begin{verbatim}
Data: CODE93^SFT/A
Options: parsefnc includecheck
Encoder: code93
\end{verbatim}
\includegraphics{images/code93-2.eps}
\hypertarget{code-93-extended}{\subsubsection{Code 93
Extended}\label{code-93-extended}}
The \textbf{Code 93 Extended} barcode symbology is continuous, variable
length and self-checking. It is based on
\protect\hyperlink{code-93}{Code 93} but can encode full 128 character
ASCII using four additional shift characters: \emph{(\$)} \emph{(\%)}
\emph{(/)} \emph{(+)}
Also known as: Code 93 Full ASCII.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{code-93}{Code 93} is a simpler variant of the Code
93 Extended barcode symbology.
\end{itemize}
Standards: ANSI/AIM BC5 - USS Code 93, ITS 93i.
\paragraph{Data and Options}\label{data-and-options-20}
\begin{itemize}
\tightlist
\item
The data field can consist of any ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters, e.g.
\texttt{\^{}029} for \emph{GS}, etc.
\item
The \textbf{includecheck} option calculates the two check digits.
\end{itemize}
\paragraph{Examples}\label{examples-16}
\begin{verbatim}
Data: Code93Ext!
Options: includecheck
Encoder: code93ext
\end{verbatim}
\includegraphics{images/code93ext-1.eps}
\begin{verbatim}
Data: Code93^029Extended
Options: parse includecheck
Encoder: code93ext
\end{verbatim}
\includegraphics{images/code93ext-2.eps}
\hypertarget{interleaved-2-of-5}{\subsubsection{Interleaved 2 of
5}\label{interleaved-2-of-5}}
\textbf{Interleaved 2 of 5} is a high-density numeric barcode symbology.
Also known as: ITF, Code 2 of 5 Interleaved, USD-1, USS-Interleaved 2 of
5.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{itf-14}{ITF-14} is a variant of Interleaved 2 of 5
that should be used when encoding a fourteen-digit GTIN.
\end{itemize}
Standards: ISO/IEC 16390, ANSI/AIM BC2 - USS Interleaved 2 of 5, BS EN
801.
\paragraph{Data and Options}\label{data-and-options-21}
\begin{itemize}
\tightlist
\item
The data can consist of any number of digits.
\item
The \textbf{includecheck} option calculates the check digit.
\item
The \textbf{includecheckintext} option makes the calculated checksum
appear in the human readable text.
\item
If the length of the symbol including the possible check digit would
be odd then the data is prefixed by \emph{0}.
\end{itemize}
\paragraph{Examples}\label{examples-17}
\begin{verbatim}
Data: 0123456789
Options:
Encoder: interleaved2of5
\end{verbatim}
\includegraphics{images/itf-1.eps}
\begin{verbatim}
Data: 2401234567
Options: includecheck includetext includecheckintext
Encoder: interleaved2of5
\end{verbatim}
\includegraphics{images/itf-2.eps}
\subsection{Supply Chain}\label{supply-chain}
\hypertarget{gs1-datamatrix}{\subsubsection{GS1
DataMatrix}\label{gs1-datamatrix}}
\textbf{GS1 DataMatrix} is an implementation of the
\protect\hyperlink{data-matrix}{Data Matrix} (ECC 200) barcode symbology
with \protect\hyperlink{gs1-application-identifier-standard-format}{GS1
formatted} data.
Standards: ISO/IEC 16022, ANSI/AIM BC11 ISS, GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-22}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} starting with the mandatory
\emph{(01)} Application Identifier.
\item
The \textbf{format} option is used to specify the shape of the symbol,
either \texttt{square} (default) or \texttt{rectangle}.
\item
The \textbf{columns} and \textbf{rows} options are used to specify the
size of the symbol.
\item
The \textbf{version} option can also be used to specify the symbol
size, as \texttt{version=RxC}. Valid options are:
\begin{itemize}
\tightlist
\item
With \texttt{format=square}: \emph{10x10}, \emph{12x12},
\emph{14x14}, \emph{16x16}, \emph{18x18}, \emph{20x20},
\emph{22x22}, \emph{24x24}, \emph{26x26}, \emph{32x32},
\emph{36x36}, \emph{40x40}, \emph{44x44}, \emph{48x48},
\emph{52x52}, \emph{64x64}, \emph{72x72}, \emph{80x80},
\emph{88x88}, \emph{96x96}, \emph{104x104}, \emph{120x120},
\emph{132x132}, \emph{144x144}
\item
With \texttt{format=rectangle}: \emph{8x18}, \emph{8x32},
\emph{12x26}, \emph{12x36}, \emph{16x36}, \emph{16x48}
\end{itemize}
\item
If \textbf{columns}, \textbf{rows} and \textbf{version} are
unspecified the encoder will default to creating a symbol of the
specified \textbf{format} that is the minimum size to represent the
given data.
\end{itemize}
\paragraph{Example}\label{example-2}
\begin{verbatim}
Data: (01)95012345678903(3103)000123
Options:
Encoder: gs1datamatrix
\end{verbatim}
\includegraphics{images/gs1datamatrix-1.eps}
\hypertarget{gs1-qr-code}{\subsubsection{GS1 QR
Code}\label{gs1-qr-code}}
\textbf{GS1 QR Code} is an implementation of the
\protect\hyperlink{qr-code}{QR Code} barcode symbology with
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
formatted data}.
Standards: ISO/IEC 18004, ITS - QR Code, GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-23}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} starting with the mandatory
\emph{(01)} and \emph{(8200)} Application Identifiers.
\item
The \textbf{eclevel} option is used to specify the error correction
level:
\begin{itemize}
\tightlist
\item
\texttt{eclevel=L} - Low
\item
\texttt{eclevel=M} - Medium (default)
\item
\texttt{eclevel=Q} - Quality
\item
\texttt{eclevel=H} - High
\end{itemize}
\item
The \textbf{version} option is used to specify the size of the symbol,
1 to 40.
\item
If the \textbf{version} is unspecified the encoder will default to
creating a symbol that is the minimum size to represent the given data
at the selected error correction level.
\end{itemize}
\paragraph{Example}\label{example-3}
\begin{verbatim}
Data: (01)03453120000011(8200)http://www.abc.net
Options:
Encoder: gs1qrcode
\end{verbatim}
\includegraphics{images/gs1qrcode-1.eps}
\begin{verbatim}
Data: (01)03453120000011(8200)http://abc.net(10)XYZ(410)9501101020917
Options:
Encoder: gs1qrcode
\end{verbatim}
\includegraphics{images/gs1qrcode-2.eps}
\hypertarget{gs1-128}{\subsubsection{GS1-128}\label{gs1-128}}
\textbf{GS1-128} is an implementation of the
\protect\hyperlink{code-128}{Code 128} barcode symbology which carries
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
formatted} data, including a GTIN-14.
Also known as: UCC/EAN-128, EAN-128, UCC-128.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-composite-symbols}{GS1-128 Composite} is a
variant of GS1-128 that should be used when a CC-A, CC-B or CC-C GS1
composite 2D component is required.
\item
\protect\hyperlink{ean-14}{EAN-14} is a variant of GS1-128 that should
be used when encoding a fourteen-digit GTIN.
\item
\protect\hyperlink{sscc-18}{SSCC-18} is a variant of GS1-128 that
should be used when encoding an eighteen-digit SSCC.
\end{itemize}
Standards: ISO/IEC 15417, ANSI/AIM BC4-1999 ISS, BS EN 799, GS1 General
Specifications.
\paragraph{Data and Options}\label{data-and-options-24}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format}.
\item
The \textbf{linkagea} option specifies that the symbol includes a
\emph{CC-A} or \emph{CC-B} GS1 composite 2D component.
\item
The \textbf{linkagec} option specifies that the symbol includes a
\emph{CC-C} GS1 composite 2D component.
\end{itemize}
\paragraph{Examples}\label{examples-18}
GTIN \emph{95012345678903}; Weight \emph{0.123kg}:
\begin{verbatim}
Data: (01)95012345678903(3103)000123
Options: includetext
Encoder: gs1-128
\end{verbatim}
\includegraphics{images/ean128-1.eps}
GTIN \emph{0061414199996}; Expiration date \emph{1st Jan 2010}; Batch
\emph{123ABC}; Serial \emph{1234567890}:
\begin{verbatim}
Data: (01)0061414199996(17)100101(10)123ABC(21)1234567890
Options: includetext
Encoder: gs1-128
\end{verbatim}
\includegraphics{images/ean128-2.eps}
\hypertarget{ean-14}{\subsubsection{EAN-14}\label{ean-14}}
\textbf{EAN-14} is an implementation of the
\protect\hyperlink{gs1-128}{GS1-128} barcode symbology with \emph{AI
(01)} that is typically used to encode a GTIN-14.
Also known as: UCC-14.
Standards: ISO/IEC 15417, ANSI/AIM BC4-1999 ISS, BS EN 799, GS1 General
Specifications.
\paragraph{Data and Options}\label{data-and-options-25}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} and must be a solitary
\emph{AI (01)} with thirteen or fourteen digits of a GTIN, i.e.
\texttt{(01)...}.
\item
Arbitrary spacing may be placed between the digits to format the human
readable text without interfering with the encoded data.
\item
If thirteen digits of primary data are supplied then the check digit
is calculated automatically. Otherwise the provided check digit must
be correct.
\end{itemize}
\paragraph{Examples}\label{examples-19}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: (01)04601234567893
Options: includetext
Encoder: ean14
\end{verbatim}
\begin{verbatim}
Data: (01)0460123456789
Options: includetext
Encoder: ean14
\end{verbatim}
\includegraphics{images/ean14-1.eps}
\hypertarget{itf-14}{\subsubsection{ITF-14}\label{itf-14}}
\textbf{ITF-14} is an implementation of the
\protect\hyperlink{interleaved-2-of-5}{Interleaved 2 of 5} barcode
symbology that is typically used to encode a GTIN-14, GTIN-13 or
GTIN-12.
Also known as: UPC Shipping Container Symbol, SCS, UPC Case Code.
Standards: ISO/IEC 16390, ANSI/AIM BC2-1995 USS, BS EN 801, GS1 General
Specifications.
\paragraph{Data and Options}\label{data-and-options-26}
\begin{itemize}
\tightlist
\item
The data consists of either thirteen or fourteen digits.
\item
Arbitrary spacing may be placed between the digits to format the human
readable text without interfering with the encoded data.
\item
If thirteen digits are supplied then the check digit is calculated
automatically. Otherwise the provided check digit must be correct.
\end{itemize}
\paragraph{Examples}\label{examples-20}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 04601234567893
Options: includetext
Encoder: itf14
\end{verbatim}
\begin{verbatim}
Data: 0460123456789
Options: includetext
Encoder: itf14
\end{verbatim}
\includegraphics{images/itf-14-1.eps}
\hypertarget{sscc-18}{\subsubsection{SSCC-18}\label{sscc-18}}
\textbf{SSCC-18} is an implementation of the
\protect\hyperlink{gs1-128}{GS1-128} barcode symbology with \emph{AI
(00)} that is typically used to encode an eighteen-digit shipping
container serial number.
Also known as: EAN-18, NVE.
Standards: ISO/IEC 15417, ANSI/AIM BC4-1999 ISS, BS EN 799, GS1 General
Specifications.
\paragraph{Data and Options}\label{data-and-options-27}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} and must be a solitary
\emph{AI (00)} with seventeen or eighteen digits of a Serial Shipping
Container Code, i.e. \texttt{(00)0...}.
\item
Arbitrary spacing may be placed between the digits to format the human
readable text without interfering with the encoded data.
\item
The mandatory check digit is calculated automatically and any user
provided check digit is discarded.
\end{itemize}
\paragraph{Example}\label{example-4}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: (00)006141411234567890
Options: includetext
Encoder: sscc18
\end{verbatim}
\begin{verbatim}
Data: (00)00614141123456789
Options: includetext
Encoder: sscc18
\end{verbatim}
\includegraphics{images/sscc18-1.eps}
\subsection{GS1 DataBar Family}\label{gs1-databar-family}
\hypertarget{gs1-databar-omnidirectional}{\subsubsection{GS1 DataBar
Omnidirectional}\label{gs1-databar-omnidirectional}}
\textbf{GS1 DataBar Omnidirectional} is a fixed-length, linear barcode
symbology that can be used to encode a GTIN-14 for use at point of sale.
Also known as: RSS-14
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-databar-stacked-omnidirectional}{GS1 DataBar
Stacked Omnidirectional} is a variant of GS1 DataBar Omnidirectional
for use where a taller, narrower symbol is required.
\item
\protect\hyperlink{gs1-composite-symbols}{GS1 DataBar Omnidirectional
Composite} is a variant of GS1 DataBar Omnidirectional that should be
used when a CC-A or CC-B GS1 composite 2D component is required.
\end{itemize}
Standards: ISO/IEC 24724, ITS Reduced Space Symbology (RSS), AIM ISS -
Reduced Space Symbology (RSS), GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-28}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} and must be a solitary
\emph{AI (01)} with thirteen or fourteen digits of a GTIN, i.e.
\texttt{(01)...}.
\item
If thirteen digits of \emph{AI (01)} data are supplied then the check
digit is calculated automatically, otherwise the digits are encoded as
supplied.
\item
The \textbf{linkage} option signifies the presence of a GS1 composite
2D component.
\end{itemize}
\paragraph{Examples}\label{examples-21}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: (01)24012345678905
Options:
Encoder: databaromni
\end{verbatim}
\begin{verbatim}
Data: (01)2401234567890
Options:
Encoder: databaromni
\end{verbatim}
\includegraphics{images/databaromni-1.eps}
\hypertarget{gs1-databar-stacked-omnidirectional}{\subsubsection{GS1
DataBar Stacked
Omnidirectional}\label{gs1-databar-stacked-omnidirectional}}
\textbf{GS1 DataBar Stacked Omnidirectional} is a fixed-length, stacked
linear barcode symbology that can be used to encode a GTIN-14 for use a
point of sale.
Also known as: RSS-14 Stacked Omnidirectional.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-databar-omnidirectional}{GS1 DataBar
Omnidirectional} is a variant of GS1 DataBar Stacked Omnidirectional
for use where a shorter, wider symbol is required.
\item
\protect\hyperlink{gs1-composite-symbols}{GS1 DataBar Stacked
Omnidirectional Composite} is a variant of GS1 DataBar Stacked
Omnidirectional that should be used when a CC-A or CC-B
\protect\hyperlink{gs1-composite-symbols}{GS1 composite} 2D component
is required.
\end{itemize}
Standards: ISO/IEC 24724, ITS Reduced Space Symbology (RSS), AIM ISS -
Reduced Space Symbology (RSS), GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-29}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} and must be a solitary
\emph{AI (01)} with thirteen or fourteen digits of a GTIN, i.e.
\texttt{(01)...}.
\item
If thirteen digits of \emph{AI (01)} data are supplied then the check
digit is calculated automatically, otherwise the digits are encoded as
supplied.
\item
The \textbf{linkage} option signifies the presence of a GS1 composite
2D component.
\end{itemize}
\paragraph{Examples}\label{examples-22}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: (01)24012345678905
Options:
Encoder: databarstackedomni
\end{verbatim}
\begin{verbatim}
Data: (01)2401234567890
Options:
Encoder: databarstackedomni
\end{verbatim}
\includegraphics{images/databarstackedomni-1.eps}
\hypertarget{gs1-databar-expanded}{\subsubsection{GS1 DataBar
Expanded}\label{gs1-databar-expanded}}
\textbf{GS1 DataBar Expanded} is a variable-length, linear barcode
symbology that can be used to encode a GTIN-14 alongside a number of
other application identifiers for use at point of sale.
Also known as: RSS Expanded.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-databar-expanded-stacked}{GS1 DataBar Expanded
Stacked} is a variant of GS1 DataBar Expanded for use where a taller,
narrower symbol is required.
\item
\protect\hyperlink{gs1-composite-symbols}{GS1 DataBar Expanded
Composite} is a variant of GS1 DataBar Expanded that should be used
when a CC-A or CC-B GS1 composite 2D component is required.
\end{itemize}
Standards: ISO/IEC 24724, ITS Reduced Space Symbology (RSS), AIM ISS -
Reduced Space Symbology (RSS), GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-30}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format}.
\item
If the data contains a number of application identifiers matching any
of the specifications below then they should be provided in this given
order for maximum encoding efficiency:
\begin{itemize}
\tightlist
\item
\texttt{(01)9...(3103)...}
\item
\texttt{(01)9...(3202)...}
\item
\texttt{(01)9...(3203)...}
\item
\texttt{(01)9...(310x/320x)...(11/13/15/17)...}
\item
\texttt{(01)9...(310x/320x)...}
\item
\texttt{(01)9...(392x)...}
\item
\texttt{(01)9...(393x)...}
\item
\texttt{(01)...}
\end{itemize}
\item
The \textbf{linkage} option signifies the presence of a GS1 composite
2D component.
\end{itemize}
\paragraph{Examples}\label{examples-23}
\begin{verbatim}
Data: (01)95012345678903(3103)000123
Options:
Encoder: databarexpanded
\end{verbatim}
\includegraphics{images/databarexpanded-1.eps}
\hypertarget{gs1-databar-expanded-stacked}{\subsubsection{GS1 DataBar
Expanded Stacked}\label{gs1-databar-expanded-stacked}}
\textbf{GS1 DataBar Expanded Stacked} is a variable-length,
stacked-linear barcode symbology that can be used to encode a GTIN-14
alongside a number of other application identifiers for use at point of
sale.
Also known as: RSS Expanded Stacked.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-databar-expanded}{GS1 DataBar Expanded} is a
variant of GS1 DataBar Expanded Stacked for use where a shorter, wider
symbol is required.
\item
\protect\hyperlink{gs1-composite-symbols}{GS1 DataBar Expanded Stacked
Composite} is a variant of GS1 DataBar Expanded Stacked that should be
used when a CC-A or CC-B GS1 composite 2D component is required.
\end{itemize}
Standards: ISO/IEC 24724, ITS Reduced Space Symbology (RSS), AIM ISS -
Reduced Space Symbology (RSS), GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-31}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format}.
\item
If the data contains a number of application identifiers matching any
of the specifications below then they should be provided in this given
order for maximum encoding efficiency:
\begin{itemize}
\tightlist
\item
\texttt{(01)9...(3103)...}
\item
\texttt{(01)9...(3202)...}
\item
\texttt{(01)9...(3203)...}
\item
\texttt{(01)9...(310x/320x)...(11/13/15/17)...}
\item
\texttt{(01)9...(310x/320x)...}
\item
\texttt{(01)9...(392x)...}
\item
\texttt{(01)9...(393x)...}
\item
\texttt{(01)...}
\end{itemize}
\item
The \textbf{segments} option is used to specify the maximum number of
segments per row which must be an even number. The default is
\emph{4}.
\item
The \textbf{linkage} option signifies the presence of a GS1 composite
2D component.
\end{itemize}
\paragraph{Examples}\label{examples-24}
\begin{verbatim}
Data: (01)95012345678903(3103)000123
Options: segments=4
Encoder: databarexpandedstacked
\end{verbatim}
\includegraphics{images/databarexpandedstacked-1.eps}
\hypertarget{gs1-databar-truncated}{\subsubsection{GS1 DataBar
Truncated}\label{gs1-databar-truncated}}
\textbf{GS1 DataBar Truncated} is a fixed-length, linear barcode
symbology that can be used to encode a GTIN-14 for in-house
applications.
Also known as: RSS-14 Truncated.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-databar-stacked}{GS1 DataBar Stacked} is a
variant of GS1 DataBar Truncated for use where a taller, narrower
symbol is required.
\item
\protect\hyperlink{gs1-composite-symbols}{GS1 DataBar Truncated
Composite} is a variant of GS1 DataBar Truncated that should be used
when a CC-A or CC-B GS1 composite 2D component is required.
\end{itemize}
Standards: ISO/IEC 24724, ITS Reduced Space Symbology (RSS), AIM ISS -
Reduced Space Symbology (RSS), GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-32}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} and must be a solitary
\emph{AI (01)} with 13 or 14 digits of a GTIN, i.e. \texttt{(01)...}.
\item
If thirteen digits of \emph{AI (01)} data are supplied then the check
digit is calculated automatically, otherwise the digits are encoded as
supplied.
\item
The \textbf{linkage} option signifies the presence of a GS1 composite
2D component.
\end{itemize}
\paragraph{Examples}\label{examples-25}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: (01)24012345678905
Options:
Encoder: databartruncated
\end{verbatim}
\begin{verbatim}
Data: (01)2401234567890
Options:
Encoder: databartruncated
\end{verbatim}
\includegraphics{images/databartruncated-1.eps}
\hypertarget{gs1-databar-stacked}{\subsubsection{GS1 DataBar
Stacked}\label{gs1-databar-stacked}}
\textbf{GS1 DataBar Stacked} is a fixed-length, stacked linear barcode
symbology that can be used to encode a GTIN-14 for in-house
applications.
Also known as: RSS-14 Stacked.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-databar-truncated}{GS1 DataBar Truncated} is a
variant of GS1 DataBar Stacked for use where a shorter, wider symbol
is required.
\item
\protect\hyperlink{gs1-composite-symbols}{GS1 DataBar Stacked
Composite} is a variant of GS1 DataBar Stacked that should be used
when a CC-A or CC-B GS1 composite 2D component is required.
\end{itemize}
Standards: ISO/IEC 24724, ITS Reduced Space Symbology (RSS), AIM ISS -
Reduced Space Symbology (RSS), GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-33}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} and must be a solitary
\emph{AI (01)} with thirteen or fourteen digits of a GTIN, i.e.
\texttt{(01)...}.
\item
If thirteen digits of \emph{AI (01)} data are supplied then the check
digit is calculated automatically, otherwise the digits are encoded as
supplied.
\item
The \textbf{linkage} option signifies the presence of a GS1 composite
2D component.
\end{itemize}
\paragraph{Examples}\label{examples-26}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: (01)24012345678905
Options:
Encoder: databarstacked
\end{verbatim}
\begin{verbatim}
Data: (01)2401234567890
Options:
Encoder: databarstacked
\end{verbatim}
\includegraphics{images/databarstacked-1.eps}
\hypertarget{gs1-databar-limited}{\subsubsection{GS1 DataBar
Limited}\label{gs1-databar-limited}}
\textbf{GS1 DataBar Limited} is fixed-length, linear barcode symbology
that can be used to encode a GTIN-14 beginning with \emph{0} or \emph{1}
for in-house applications.
Also known as: RSS Limited.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{gs1-composite-symbols}{GS1 DataBar Limited
Composite} is a variant of GS1 DataBar Limited that should be used
when a CC-A or CC-B GS1 composite 2D component is required.
\end{itemize}
Standards: ISO/IEC 24724, ITS Reduced Space Symbology (RSS), AIM ISS -
Reduced Space Symbology (RSS), GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-34}
\begin{itemize}
\tightlist
\item
The data field input is provided in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format} and must be a solitary
\emph{AI (01)} with thirteen or fourteen digits of a GTIN starting
with \emph{0} or \emph{1}, i.e. \texttt{(01)0...} or
\texttt{(01)1...}.
\item
If thirteen digits of \emph{AI (01)} data are supplied then the check
digit is calculated automatically, otherwise the digits are encoded as
supplied.
\item
The \textbf{linkage} option signifies the presence of a GS1 composite
2D component.
\end{itemize}
\paragraph{Examples}\label{examples-27}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: (01)15012345678907
Options:
Encoder: databarlimited
\end{verbatim}
\begin{verbatim}
Data: (01)1501234567890
Options:
Encoder: databarlimited
\end{verbatim}
\includegraphics{images/databarlimited-1.eps}
\subsection{Postal Symbols}\label{postal-symbols}
\subsubsection{Australia Post 4 State Customer
Code}\label{australia-post-4-state-customer-code}
The \textbf{Australia Post 4 State Customer Code} is a barcode used by
the Australian Postal Service to encode the data on letter mail.
\paragraph{Data and Options}\label{data-and-options-35}
\begin{itemize}
\tightlist
\item
The first two characters of the data field are digits used to specify
the manditory FCC type of the symbols, either \texttt{11},
\texttt{45}, \texttt{59} or \texttt{67}.
\item
The next eight characters are digits that specify the manditory DPID.
\item
The number of remaining characters varies according to the given FCC
code and these specify the contents of the customer information field
in one of two alphabets:
\begin{itemize}
\tightlist
\item
The \textbf{custinfoenc} option should be supplied as
\texttt{custinfoenc=numeric} if the customer information field is to
be encoded using the numeric alphabet which can contain the digits
0-9.
\item
Otherwise the customer information field is encoded using the
default character encoding, \texttt{custinfoenc=character}, which
permits any of the following characters:
\item
Upper case letters \texttt{A-Z}
\item
Lower case letters \texttt{a-z}
\item
Digits \texttt{0-9}
\item
Symbols \texttt{space} and \texttt{\#}
\end{itemize}
\item
The maditory Reed-Solomon check bars are calculated automatically.
\end{itemize}
\paragraph{Examples}\label{examples-28}
FCC 62 symbol with character customer data:
\begin{verbatim}
Data: 6279438541AaaB 155
Options: custinfoenc=character
Encoder: auspost
\end{verbatim}
\includegraphics{images/auspost-1.eps}
FCC 59 symbol with numeric customer data:
\begin{verbatim}
Data: 593221132401234567
Options: custinfoenc=numeric
Encoder: auspost
\end{verbatim}
\includegraphics{images/auspost-2.eps}
\subsubsection{Deutsche Post Identcode}\label{deutsche-post-identcode}
\textbf{Deutsche Post Identcode} is an implementation of the
\protect\hyperlink{interleaved-2-of-5}{Interleaved 2 of 5} barcode
symbology that is used by German Post for mail routing.
Also known as: DHL Identcode.
\paragraph{Data and Options}\label{data-and-options-36}
\begin{itemize}
\tightlist
\item
The data consists of a consecutive string of eleven or twelve digits
consisting of:
\begin{itemize}
\tightlist
\item
Two-digit primary distribution centre identifier
\item
Three-digit customer identifier
\item
Six-digit mail piece identifier
\item
One-digit check digit (may be omitted)
\end{itemize}
\item
If eleven digits are supplied then the check digit is calculated
automatically. Otherwise the provided check digit must be correct.
\end{itemize}
\paragraph{Example}\label{example-5}
Identical symbols, input provided with an without a check digit:
\begin{verbatim}
Data: 563102430313
Options: includetext
Encoder: identcode
\end{verbatim}
\begin{verbatim}
Data: 56310243031
Options: includetext
Encoder: identcode
\end{verbatim}
\includegraphics{images/identcode-1.eps}
\subsubsection{Deutsche Post Leitcode}\label{deutsche-post-leitcode}
The \textbf{Deutsche Post Leitcode} barcode symbology is an
implementation of the \protect\hyperlink{interleaved-2-of-5}{Interleaved
2 of 5} barcode that is used by German Post for mail routing.
Also known as: DHL Leitcode.
\paragraph{Data and Options}\label{data-and-options-37}
\begin{itemize}
\tightlist
\item
The data consists of a consecutive string of thirteen or fourteen
digits consisting of:
\begin{itemize}
\tightlist
\item
Five-digit postal code
\item
Three-digit street identifier
\item
Three-digit house number
\item
Two-digit product code
\item
One-digit check digit (may be omitted)
\end{itemize}
\item
If thirteen digits are supplied then the check digit is calculated
automatically. Otherwise the provided check digit must be correct.
\end{itemize}
\paragraph{Examples}\label{examples-29}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 21348075016401
Options: includetext
Encoder: leitcode
\end{verbatim}
\begin{verbatim}
Data: 2134807501640
Options: includetext
Encoder: leitcode
\end{verbatim}
\includegraphics{images/leitcode-1.eps}
\subsubsection{Japan Post 4 State
Barcode}\label{japan-post-4-state-barcode}
The \textbf{Japan Post 4 state barcode} symbology is used by the Japan
Post service to encode the delivery point identifier on letter mail.
\paragraph{Data and Options}\label{data-and-options-38}
\begin{itemize}
\tightlist
\item
The data may contain any of the following characters:
\begin{itemize}
\tightlist
\item
Capital letters \texttt{A-Z}
\item
Digits \texttt{0-9}
\item
Hyphen \texttt{-}
\end{itemize}
\end{itemize}
\paragraph{Example}\label{example-6}
\begin{verbatim}
Data: 6540123789-A-K-Z
Options:
Encoder: japanpost
\end{verbatim}
\includegraphics{images/japanpost-1.eps}
\subsubsection{MaxiCode}\label{maxicode}
The \textbf{MaxiCode} barcode symbology is a 2D barcode based on a
hexagonal matrix surrounding a bulls eye pattern. It can encode a
structured carrier message and full 256 character extended-ASCII.
Also known as: UPS Code, Code 6.
Standards: ISO/IEC 16023, ANSI/AIM BC10 - ISS MaxiCode.
\paragraph{Data and Options}\label{data-and-options-39}
\begin{itemize}
\tightlist
\item
The \textbf{mode} option is used to specify how the data is structured
in the symbol:
\begin{itemize}
\tightlist
\item
\texttt{mode=2} - Formatted data containing a Structured Carrier
Message with a numeric (US domestic) postal code.
\item
\texttt{mode=3} - Formatted data containing a Structured Carrier
Message with an alphanumeric (international) postal code.
\item
\texttt{mode=4} - Unstructured data using standard error correction.
\item
\texttt{mode=5} - Unstructured data using enhanced error correction.
\item
\texttt{mode=6} - Barcode reader programming.
\end{itemize}
\item
If \textbf{mode} is unspecified the encoder will default to selecting
\texttt{mode=5} if the encoded length of the input data permits
enhanced error correction, otherwise it will select \texttt{mode=4}
which provides standard error correction.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
If \texttt{mode=4}, \texttt{mode=5} or \texttt{mode=6} the data field
may contain any extended ASCII data.
\item
If \texttt{mode=2} or \texttt{mode=3} the data field must begin with a
properly structured carrier message, followed by any extended ASCII
data.
\item
The structured carrier message contains a postal code, three-digit
class of service and a three-digit ISO country code separated by
\emph{GS} (ASCII 29) characters. It is formatted in the data field as
follows:
\texttt{{[}postal\ code{]}\^{}029{[}country\ code{]}\^{}029{[}service\ class{]}\^{}029}.
If \texttt{mode=2} the postcode must be numeric, whilst if
\texttt{mode=3} the postcode may contain up to six digits, upper case
letters and spaces.
\item
Alternatively, messages may begin with the special application field
identifier \texttt{{[})\textgreater{}\{RS\}01\{GS\}yy} where
\texttt{\{RS\}} represents ASCII value 30, \texttt{\{GS\}} represents
ASCII value 29 and \texttt{yy} is a two-digit year. In parse mode this
is represented as \texttt{{[})\textgreater{}\^{}03001\^{}0299}. If
\texttt{mode=2} or \texttt{mode=3} this must be immediately followed
by the structured carrier message.
\end{itemize}
\paragraph{Examples}\label{examples-30}
\begin{verbatim}
Data: This is MaxiCode
Options:
Encoder: maxicode
\end{verbatim}
\begin{verbatim}
Data: This is Maxi^067ode
Options: parse
Encoder: maxicode
\end{verbatim}
\includegraphics{images/maxicode-1.eps}
\begin{verbatim}
Data: 152382802^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291/1^029^029Y^029634 ALPHA DR^029PITTSBURGH^029PA^029^004
Options: mode=2 parse
Encoder: maxicode
\end{verbatim}
\includegraphics{images/maxicode-2.eps}
\begin{verbatim}
Data: ABC123^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291/1^029^029Y^029634 ALPHA DR^029PITTSBURGH^029PA^029^004
Options: mode=3 parse
Encoder: maxicode
\end{verbatim}
\includegraphics{images/maxicode-3.eps}
\begin{verbatim}
Data: [\)>^03001^02996152382802^029840^029001^0291Z00004951^029UPSN^02906X610^029159^0291234567^0291/1^029^029Y^029634 ALPHA DR^029PITTSBURGH^029PA^029^004
Options: mode=2 parse
Encoder: maxicode
\end{verbatim}
\includegraphics{images/maxicode-4.eps}
\subsubsection{Royal Mail 4 State Customer
Code}\label{royal-mail-4-state-customer-code}
The \textbf{Royal Mail 4 State Customer Code} is a barcode symbology
used by the British Postal Service to encode the postcode and delivery
point identifier on letter mail.
Also known as: RM4SCC, CBC.
\paragraph{Data and Options}\label{data-and-options-40}
\begin{itemize}
\tightlist
\item
The data may contain any of the following characters from the postcode
and DPID:
\begin{itemize}
\tightlist
\item
Capital letters A-Z
\item
Digits 0-9
\end{itemize}
\item
The maditory checksum digit is calculated automatically and must not
be included in the data field
\end{itemize}
\paragraph{Example}\label{example-7}
\begin{verbatim}
Data: LE28HS9Z
Options: includetext
Encoder: royalmail
\end{verbatim}
\includegraphics{images/rm4scc-1.eps}
\subsubsection{Royal TNT Post 4 state
barcode}\label{royal-tnt-post-4-state-barcode}
The \textbf{Royal TNT Post 4 state barcode} symbology is used by the
Dutch Postal Service to encode the delivery point identifier on letter
mail.
Also known as: KIX.
\paragraph{Data and Options}\label{data-and-options-41}
\begin{itemize}
\tightlist
\item
The data may contain any of the following characters from the DPID:
\begin{itemize}
\tightlist
\item
Capital letters \texttt{A-Z}
\item
Digits \texttt{0-9}
\end{itemize}
\end{itemize}
\paragraph{Example}\label{example-8}
\begin{verbatim}
Data: 1231FZ13XHS
Options: includetext
Encoder: kix
\end{verbatim}
\includegraphics{images/kix-1.eps}
\subsubsection{USPS Intelligent Mail}\label{usps-intelligent-mail}
The \textbf{USPS Intelligent Mail} barcode is used by the US Postal
service to encode the delivery and sender information on letter mail.
Also known as: USPS OneCode.
Standards: USPS-STD-11.
\paragraph{Data and Options}\label{data-and-options-42}
\begin{itemize}
\tightlist
\item
The data contains 31 digits representing the following:
\begin{itemize}
\tightlist
\item
Barcode Identifier - two digits
\item
Service Type Identifier - three digits
\item
Mailer ID, Sequence Number - either six then nine digits
respectively or nine then six digits respectively
\item
Delivery Point ZIP Code - eleven digits
\end{itemize}
\item
The mandatory checksum digit is calculated automatically and must not
be included in the data field.
\end{itemize}
\paragraph{Example}\label{example-9}
\begin{verbatim}
Data: 0123456709498765432101234567891
Options: includetext
Encoder: onecode
\end{verbatim}
\includegraphics{images/onecode-1.eps}
\subsubsection{USPS POSTNET}\label{usps-postnet}
The \textbf{USPS POSTNET} barcode symbology is used by the US Postal
service to encode the ZIP code information on letter mail.
\paragraph{Data and Options}\label{data-and-options-43}
\begin{itemize}
\tightlist
\item
The data field contains the digits from the ZIP code, without dashes.
\item
The mandatory checksum is calculated automatically and must not be
included in the data field.
\end{itemize}
\paragraph{Example}\label{example-10}
\begin{verbatim}
Data: 12345123412
Options:
Encoder: postnet
\end{verbatim}
\includegraphics{images/postnet-1.eps}
\subsubsection{USPS PLANET}\label{usps-planet}
The \textbf{USPS PLANET} barcode symbology is used by the US Postal
service to encode the ZIP code information on letter mail.
\paragraph{Data and Options}\label{data-and-options-44}
\begin{itemize}
\tightlist
\item
The data field contains eleven or thirteen digits, without dashes.
\item
The mandatory checksum is calculated automatically and must not be
included in the data field.
\end{itemize}
\paragraph{Example}\label{example-11}
\begin{verbatim}
Data: 01234567890
Options:
Encoder: planet
\end{verbatim}
\includegraphics{images/planet-1.eps}
\subsubsection{USPS FIM Symbols}\label{usps-fim-symbols}
The \textbf{USPS FIM} encoder is used to generate static predefined
barcode symbols.
\paragraph{Data and Options}\label{data-and-options-45}
\begin{itemize}
\tightlist
\item
The data field accepts one of the following values:
\begin{itemize}
\tightlist
\item
\texttt{fima} - US Postal Service FIM-A symbol
\item
\texttt{fimb} - US Postal Service FIM-B symbol
\item
\texttt{fimc} - US Postal Service FIM-C symbol
\item
\texttt{fimd} - US Postal Service FIM-D symbol
\end{itemize}
\end{itemize}
\paragraph{Examples}\label{examples-31}
A USPS FIM A symbol:
\begin{verbatim}
Data: fima
Options:
Encoder: symbol
\end{verbatim}
\includegraphics{images/fima-1.eps}
A USPS FIM B symbol:
\begin{verbatim}
Data: fimb
Options:
Encoder: symbol
\end{verbatim}
\includegraphics{images/fimb-1.eps}
A USPS FIM C symbol:
\begin{verbatim}
Data: fimc
Options:
Encoder: symbol
\end{verbatim}
\includegraphics{images/fimc-1.eps}
A USPS FIM D symbol:
\begin{verbatim}
Data: fimd
Options:
Encoder: symbol
\end{verbatim}
\includegraphics{images/fimd-1.eps}
\subsection{Pharmaceutical Symbols}\label{pharmaceutical-symbols}
\subsubsection{Italian Pharmacode}\label{italian-pharmacode}
\textbf{Italian Pharmacode} is a discrete, fixed length, self-checking
barcode symbology used for pharmaceutical products in Italy.
Also known as: Code 32, IMH, Radix 32.
\paragraph{Data and Options}\label{data-and-options-46}
\begin{itemize}
\tightlist
\item
The data field must contain either eight or nine digits from the code.
The leading \emph{A} which is provided in some applications must be
omitted.
\item
The mandatory check digit is calculated automatically if it is not
provided.
\end{itemize}
\paragraph{Examples}\label{examples-32}
Identical symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 012345676
Options: includetext
Encoder: code32
\end{verbatim}
\begin{verbatim}
Data: 01234567
Options: includetext
Encoder: code32
\end{verbatim}
\includegraphics{images/code32-1.eps}
\hypertarget{pharmacode}{\subsubsection{Pharmacode}\label{pharmacode}}
\textbf{Pharmacode} is a binary barcode symbology that is used by the
Pharmaceutical industry.
Also known as: Pharmaceutical Binary Code.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{two-track-pharmacode}{Two-track Pharmacode} is a
variant of the Pharmacode barcode.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-47}
\begin{itemize}
\tightlist
\item
The data field must contain a number between \texttt{3} and
\texttt{131070} inclusive.
\item
The \textbf{nwidth}, \textbf{wwidth} and \textbf{swidth} options can
be used to specify a custom width (in points) for the narrow bars,
wide bars and inter-bar spaces respectively.
\end{itemize}
\paragraph{Example}\label{example-12}
\begin{verbatim}
Data: 117480
Options:
Encoder: pharmacode
\end{verbatim}
\includegraphics{images/pharmacode-1.eps}
\hypertarget{two-track-pharmacode}{\subsubsection{Two-Track
Pharmacode}\label{two-track-pharmacode}}
\textbf{Two-Track Pharmacode} is a binary barcode symbology used by the
Pharmaceutical industry.
Also known as: Two-track Pharmaceutical Binary Code.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{pharmacode}{Pharmacode} is a variant of the
Two-track Pharmacode barcode.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-48}
\begin{itemize}
\tightlist
\item
The data field must contain a number between \texttt{4} and
\texttt{64570080} inclusive.
\end{itemize}
\paragraph{Example}\label{example-13}
\begin{verbatim}
Data: 117480
Options:
Encoder: pharmacode2
\end{verbatim}
\includegraphics{images/pharmacode2-1.eps}
\subsubsection{PZN}\label{pzn}
\textbf{PZN} is a discrete, fixed length, self-checking barcode
symbology used for pharmaceutical products in Germany.
Also known as: Pharmazentralnummer.
Variants:
\begin{itemize}
\tightlist
\item
PZN-7.
\item
PZN-8.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-49}
\begin{itemize}
\tightlist
\item
For the default PZN7 encoding, the data field must contain six digits
or seven digits.
\item
The \textbf{pzn8} option specifies that a PZN8 symbol is required, in
which case the data field must contain seven digits or eight digits.
\item
The mandatory check digit is calculated automatically if not provided.
\item
Note: by definition, not all six-digit or seven-digit number sequences
are valid inputs.
\end{itemize}
\paragraph{Examples}\label{examples-33}
Identical PZN7 symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 1234562
Options: includetext
Encoder: pzn
\end{verbatim}
\begin{verbatim}
Data: 123456
Options: includetext
Encoder: pzn
\end{verbatim}
\includegraphics{images/pzn-1.eps}
Identical PZN8 symbols, input provided with and without a check digit:
\begin{verbatim}
Data: 0275808
Options: pzn8 includetext
Encoder: pzn
\end{verbatim}
\begin{verbatim}
Data: 02758089
Options: pzn8 includetext
Encoder: pzn
\end{verbatim}
\includegraphics{images/pzn-2.eps}
\hypertarget{hibc-symbols}{\subsection{HIBC
Symbols}\label{hibc-symbols}}
\textbf{HIBC barcodes} use a number of general symbologies as carrier
symbols for data structured according to the LIC and PAS structured data
definitions.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{hibc-code-39}{HIBC Code 39} is a variant of
\protect\hyperlink{code-39}{Code 39}.
\item
\protect\hyperlink{hibc-code-128}{HIBC Code 128} is a variant of
\protect\hyperlink{code-128}{Code 128}.
\item
\protect\hyperlink{hibc-pdf417}{HIBC PDF417} is a variant of
\protect\hyperlink{pdf417}{PDF417}.
\item
\protect\hyperlink{hibc-micropdf417}{HIBC MicroPDF417} is a variant of
\protect\hyperlink{micropdf417}{MicroPDF417}.
\item
\protect\hyperlink{hibc-qr-code}{HIBC QR Code} is a variant of
\protect\hyperlink{qr-code}{QR Code}.
\item
\protect\hyperlink{hibc-data-matrix}{HIBC Data Matrix} is a variant of
\protect\hyperlink{data-matrix}{Data Matrix}.
\item
\protect\hyperlink{hibc-codablock-f}{HIBC Codablock F} is a variant of
\protect\hyperlink{codablock-f}{Codablock F}.
\end{itemize}
Standards: ANSI/HIBC Provider Applications Standard, ANSI/HIBC Supplier
Labelling Standard, ANSI/HIBC Positive Identification for Patient
Safety, ANSI/HIBC Syntax Standard.
\paragraph{Data and Options}\label{data-and-options-50}
\begin{itemize}
\tightlist
\item
The data should be pre-encoded to describe the intended barcode
content.
\item
The HIBC \emph{+} character is prefixed automatically.
\item
The mandatory HIBC check character is automatically appended to the
input.
\end{itemize}
\hypertarget{hibc-code-39}{\subsubsection{HIBC Code
39}\label{hibc-code-39}}
\begin{verbatim}
Data: A123BJC5D6E71
Options: includetext
Encoder: hibccode39
\end{verbatim}
\includegraphics{images/hibccode39-1.eps}
\hypertarget{hibc-code-128}{\subsubsection{HIBC Code
128}\label{hibc-code-128}}
\begin{verbatim}
Data: A123BJC5D6E71
Options: includetext
Encoder: hibccode128
\end{verbatim}
\includegraphics{images/hibccode128-1.eps}
\hypertarget{hibc-pdf417}{\subsubsection{HIBC
PDF417}\label{hibc-pdf417}}
\begin{verbatim}
Data: A123BJC5D6E71
Options:
Encoder: hibcpdf417
\end{verbatim}
\includegraphics{images/hibcpdf417-1.eps}
\hypertarget{hibc-micropdf417}{\subsubsection{HIBC
MicroPDF417}\label{hibc-micropdf417}}
\begin{verbatim}
Data: A123BJC5D6E71
Options:
Encoder: hibcmicropdf417
\end{verbatim}
\includegraphics{images/hibcmicropdf417-1.eps}
\hypertarget{hibc-qr-code}{\subsubsection{HIBC QR
Code}\label{hibc-qr-code}}
\begin{verbatim}
Data: A123BJC5D6E71
Options:
Encoder: hibcqrcode
\end{verbatim}
\includegraphics{images/hibcqrcode-1.eps}
\hypertarget{hibc-data-matrix}{\subsubsection{HIBC Data
Matrix}\label{hibc-data-matrix}}
\begin{verbatim}
Data: A123BJC5D6E71
Options:
Encoder: hibcdatamatrix
\end{verbatim}
\includegraphics{images/hibcdatamatrix-1.eps}
\hypertarget{hibc-codablock-f}{\subsubsection{HIBC Codablock
F}\label{hibc-codablock-f}}
\begin{verbatim}
Data: A123BJC5D6E71
Options:
Encoder: hibccodablockf
\end{verbatim}
\includegraphics{images/hibccodablockf-1.eps}
\subsection{Less-used Symbols}\label{less-used-symbols}
\subsubsection{BC412}\label{bc412}
The \textbf{BC412} barcode symbology is single width, variable length
barcode that is used for silicon wafer identification by the
semiconductor manufacturing industry.
Also known as: BC412 SEMI, BC412 IBM.
\paragraph{Data and Options}\label{data-and-options-51}
\begin{itemize}
\tightlist
\item
The data field can hold any of the following:
\begin{itemize}
\tightlist
\item
Numbers 0-9
\item
Capital letters A-Z, excluding O
\end{itemize}
\item
The \textbf{includestartstop} option enables the display of start and
stop bars.
\item
The \textbf{includecheck} option calculates the check character.
\item
The \textbf{includecheckintext} option makes the calculated checksum
appear in the human readable text.
\item
The \textbf{semi} option enables conformance to the SEMI standard by
enabling start and stop bars as well as a check character.
\item
The \textbf{inkspread} option can be used to adjust the width of the
bars.
\end{itemize}
\paragraph{Examples}\label{examples-34}
\begin{verbatim}
Data: BC412
Options: includecheck
Encoder: bc412
\end{verbatim}
\includegraphics{images/bc412-1.eps}
\begin{verbatim}
Data: BC412
Options: includestartstop
Encoder: bc412
\end{verbatim}
\includegraphics{images/bc412-2.eps}
\begin{verbatim}
Data: BC412
Options: semi
Encoder: bc412
\end{verbatim}
\includegraphics{images/bc412-3.eps}
\subsubsection{Channel Code}\label{channel-code}
\textbf{Channel Code} is a linear, continuous, self-checking,
bidirectional barcode symbology that encodes between two and seven
digits in a short space.
Standards: ANSI/AIM BC12 - USS Channel Code.
\paragraph{Data and Options}\label{data-and-options-52}
\begin{itemize}
\tightlist
\item
The data field can hold zero prefixed values from any of the following
ranges:
\begin{itemize}
\tightlist
\item
Channel 3: \texttt{00-26}
\item
Channel 4: \texttt{000-292}
\item
Channel 5: \texttt{0000-3493}
\item
Channel 6: \texttt{00000-44072}
\item
Channel 7: \texttt{000000-576688}
\item
Channel 8: \texttt{0000000-7742862}
\end{itemize}
\item
The channel is determined to be one more than the number of digits
given in the data field.
\item
The \textbf{shortfinder} option generates a symbol with a shortened
finder pattern.
\item
The \textbf{includecheck} option appends an optional check bar suffix.
\end{itemize}
\paragraph{Examples}\label{examples-35}
A channel 3 symbol holding the value five:
\begin{verbatim}
Data: 05
Options: includetext
Encoder: channelcode
\end{verbatim}
\includegraphics{images/channelcode-1.eps}
A channel 4 symbol holding the value 123:
\begin{verbatim}
Data: 123
Options: includetext
Encoder: channelcode
\end{verbatim}
\includegraphics{images/channelcode-2.eps}
A channel 4 symbol holding the value five including optional check bars:
\begin{verbatim}
Data: 005
Options: includetext includecheck
Encoder: channelcode
\end{verbatim}
\includegraphics{images/channelcode-3.eps}
A channel 3 symbol holding the value 26 with a shorteded finder pattern:
\begin{verbatim}
Data: 26
Options: shortfinder includetext
Encoder: channelcode
\end{verbatim}
\includegraphics{images/channelcode-4.eps}
\subsubsection{Codabar}\label{codabar}
\textbf{Codabar} is a linear, discrete, self-checking, bidirectional
barcode symbology that can encode digits, six symbols and four delimiter
characters. It is primarily used by libraries and blood banks, photo
labs and FedEx airbills.
Also known as: Rationalized Codabar, Ames Code, NW-7, USD-4,
USS-Codabar, ABC Codabar, Monarch, Code 2 of 7.
Standards: ANSI/AIM BC3 - USS Codabar, BS EN 798.
\paragraph{Data and Options}\label{data-and-options-53}
\begin{itemize}
\tightlist
\item
The data field must start and stop with one of the following
delimiters
\begin{itemize}
\tightlist
\item
\texttt{ABCD}
\item
\texttt{TNE*} (with the \emph{altstartstop} option)
\end{itemize}
\item
The data field can otherwise hold any of the following
\begin{itemize}
\tightlist
\item
Digits 0-9
\item
Symbols \texttt{-\$:/.+}
\end{itemize}
\item
The \textbf{altstartstop} option specifies that the alternative set of
delimiter characters is in use.
\item
The \textbf{includecheck} option calculates the check digit.
\item
The \textbf{includecheckintext} option makes the calculated check
characters appear in the human readable text.
\end{itemize}
\paragraph{Example}\label{example-14}
\begin{verbatim}
Data: A0123456789B
Options: includecheck includetext includecheckintext
Encoder: rationalizedCodabar
\end{verbatim}
\includegraphics{images/codabar-1.eps}
\hypertarget{codablock-f}{\subsubsection{Codablock
F}\label{codablock-f}}
The \textbf{Codablock F} barcode symbology is 2D stacked-linear barcode
that consists of a number of stacked \protect\hyperlink{code-128}{Code
128} symbols. It can encode full 256 character extended-ASCII.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{hibc-symbols}{HIBC Codablock F} is a variant of
Codablock F that should be used when encoding HIBC formatted data.
\end{itemize}
Standards: USS Codablock F.
\paragraph{Data and Options}\label{data-and-options-54}
\begin{itemize}
\tightlist
\item
The data field can consist of any extended-ASCII data.
\item
\emph{FNC4} function characters will be inserted automatically to
allow the encoding of extended ASCII characters.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
When the \textbf{parsefnc} option is specified, non-data function
characters can be specified by \texttt{\^{}FNC1} or \texttt{\^{}FNC3}.
\item
The \textbf{columns} option specifies the number of columns in the
symbol, default 8.
\item
The \textbf{rows} option specifies the number of rows in the symbol,
between 2 and 44.
\item
If \textbf{rows} is unspecified the encoder will default to the
smallest number of rows that can hold the given data.
\item
The \textbf{raw} option denotes that the data field is providing the
input as a pre-encoded codewords in \texttt{\^{}NNN} format, suitable
for direct low-level encoding.
\item
The \textbf{rowheight} option specifies the height of the bars in each
row in points. The default is 10.
\item
The \textbf{sepheight} option specifies the height of the separator
bars enclosing the rows in points. The default is 1.
\end{itemize}
\paragraph{Examples}\label{examples-36}
\begin{verbatim}
Data: Codablock F
Options:
Encoder: codablockf
\end{verbatim}
\includegraphics{images/codablockf-1.eps}
\begin{verbatim}
Data: CODABLOCK F 34567890123456789010040digit
Options: columns=8 rows=5
Encoder: codablockf
\end{verbatim}
\includegraphics{images/codablockf-2.eps}
\begin{verbatim}
Data: Short bars, fat seperators
Options: columns=10 rows=8 rowheight=6 sepheight=2
Encoder: codablockf
\end{verbatim}
\includegraphics{images/codablockf-3.eps}
\subsubsection{Code 11}\label{code-11}
\textbf{Code 11} is a linear, discrete, non-self-checking,
bidirectional, numeric barcode symbology that is primarily used for
labelling telecommunication equipment.
Also known as: USD-8.
\paragraph{Data and Options}\label{data-and-options-55}
\begin{itemize}
\tightlist
\item
The data consists of digits and the dash character \emph{-}.
\item
The \textbf{includecheck} option calculates the check digits.
\item
For less than 10 data digits a single check digit is used.
\item
For 10 or more data digits two check digits are used.
\end{itemize}
\paragraph{Example}\label{example-15}
\begin{verbatim}
Data: 0123456789
Options: includecheck includetext includecheckintext
Encoder: code11
\end{verbatim}
\includegraphics{images/code11-1.eps}
\subsubsection{Code 16K}\label{code-16k}
The \textbf{Code 16K} barcode symbology is 2D stacked-linear barcode
that can encode full 256 character extended-ASCII with the use of the
\emph{FNC4} shift character.
Also known as: USS-16K
Standards: ANSI/AIM BC7 - USS Code 16K, BS EN 12323.
\paragraph{Data and Options}\label{data-and-options-56}
\begin{itemize}
\tightlist
\item
The input can consist of any 256-bit extended ASCII data.
\item
\emph{FNC4} function characters will be inserted automatically to
allow the encoding of extended ASCII characters.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
When the \textbf{parsefnc} option is specified, non-data function
characters can be specified by \texttt{\^{}FNC1} through
\texttt{\^{}FNC3}.
\item
The \textbf{mode} option specifies the mode for the symbol. It is
usual to leave this unspecified in which case the most appropriate
mode that results in the shortest symbol is automatically selected
based in the input data.
\begin{itemize}
\tightlist
\item
\texttt{mode=0} - Starting code set A
\item
\texttt{mode=1} - Starting code set B
\item
\texttt{mode=2} - Starting code set C
\item
\texttt{mode=3} - Starting code set B with implied \emph{FNC1}
\item
\texttt{mode=4} - Starting code set C with implied \emph{FNC1}
\item
\texttt{mode=5} - Starting code set C with implied \emph{Shift B}
\item
\texttt{mode=6} - Starting code set C with implied \emph{Double
Shift B}
\end{itemize}
\item
The \textbf{pos} option specifies this symbol to be part of multi-part
structured data. For example \texttt{pos=25} specifies this to be the
second symbol in a group of five symbols.
\item
The \textbf{rows} option specifies the number of rows in the symbol,
between two and sixteen.
\item
If \textbf{rows} is unspecified the encoder will default to the
smallest number of rows that can hold the given data.
\item
The \textbf{raw} option denotes that the data field is providing the
input as a pre-encoded codewords in \texttt{\^{}NNN} format, suitable
for direct low-level encoding.
\item
The \textbf{rowheight} option specifies the height of the bars in each
row in points. The default is 10.
\item
The \textbf{sepheight} option specifies the height of the separator
bars enclosing the rows in points. The default is 1.
\end{itemize}
\paragraph{Examples}\label{examples-37}
\begin{verbatim}
Data: Abcd-1234567890-wxyZ
Options:
Encoder: code16k
\end{verbatim}
\includegraphics{images/code16k-1.eps}
\begin{verbatim}
Data: Code 16K
Options: rows=10
Encoder: code16k
\end{verbatim}
\includegraphics{images/code16k-2.eps}
\begin{verbatim}
Data: Short bars, fat seperators
Options: rows=8 rowheight=5 sepheight=2
Encoder: code16k
\end{verbatim}
\includegraphics{images/code16k-3.eps}
\hypertarget{code-25}{\subsubsection{Code 25}\label{code-25}}
\textbf{Code 2 of 5} is a simple low density numeric barcode symbology.
Also known as: Code 25, Industrial 2 of 5, Standard 2 of 5
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{iata-2-of-5}{IATA 2 of 5}, Computer Identics 2 of
5.
\item
\protect\hyperlink{datalogic-2-of-5}{Datalogic 2 of 5}.
\item
\protect\hyperlink{matrix-2-of-5}{Matrix 2 of 5}.
\item
\protect\hyperlink{coop-2-of-5}{COOP 2 of 5}.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-57}
\begin{itemize}
\tightlist
\item
The data consists of any number of digits.
\item
The \textbf{includecheck} option calculates the check digit.
\item
The \textbf{version} option determines which variant to use:
\begin{itemize}
\tightlist
\item
\texttt{version=industrial} (default) - Industrial 2 of 5.
\item
\texttt{version=iata} - \emph{Deprecated: Use
\protect\hyperlink{iata-2-of-5}{IATA 2 of 5}}
\item
\texttt{version=datalogic} - \emph{Deprecated: Use
\protect\hyperlink{datalogic-2-of-5}{Datalogic 2 of 5}}
\item
\texttt{version=matrix} - \emph{Deprecated: Use
\protect\hyperlink{matrix-2-of-5}{Matrix 2 of 5}}
\item
\texttt{version=coop} - \emph{Deprecated: Use
\protect\hyperlink{coop-2-of-5}{COOP 2 of 5}}
\end{itemize}
\end{itemize}
\paragraph{Examples}\label{examples-38}
\begin{verbatim}
Data: 01234567
Options:
Encoder: code2of5
\end{verbatim}
\includegraphics{images/code25-1.eps}
\hypertarget{iata-2-of-5}{\subsubsection{IATA 2 of
5}\label{iata-2-of-5}}
\textbf{IATA 2 of 5} is a variant of the
\protect\hyperlink{code-25}{Code 2 of 5} barcode symbology.
Also known as: Computer Identics 2 of 5.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{code-25}{Industrial 2 of 5}, Standard 2 of 5.
\item
\protect\hyperlink{datalogic-2-of-5}{Datalogic 2 of 5}.
\item
\protect\hyperlink{matrix-2-of-5}{Matrix 2 of 5}.
\item
\protect\hyperlink{coop-2-of-5}{COOP 2 of 5}.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-58}
\begin{itemize}
\tightlist
\item
The data consists of any number of digits.
\item
The \textbf{includecheck} option calculates the check digit.
\end{itemize}
\paragraph{Examples}\label{examples-39}
\begin{verbatim}
Data: 01234567
Options: includetext includecheck includecheckintext
Encoder: iata2of5
\end{verbatim}
\includegraphics{images/code25-2.eps}
\hypertarget{matrix-2-of-5}{\subsubsection{Matrix 2 of
5}\label{matrix-2-of-5}}
\textbf{Matrix 2 of 5} is a variant of the
\protect\hyperlink{code-25}{Code 2 of 5} barcode symbology.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{code-25}{Industrial 2 of 5}, Standard 2 of 5.
\item
\protect\hyperlink{iata-2-of-5}{IATA 2 of 5}, Computer Identics 2 of
5.
\item
\protect\hyperlink{datalogic-2-of-5}{Datalogic 2 of 5}.
\item
\protect\hyperlink{coop-2-of-5}{COOP 2 of 5}.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-59}
\begin{itemize}
\tightlist
\item
The data consists of any number of digits.
\item
The \textbf{includecheck} option calculates the check digit.
\end{itemize}
\hypertarget{datalogic-2-of-5}{\subsubsection{Datalogic 2 of
5}\label{datalogic-2-of-5}}
\textbf{Datalogic 2 of 5} is a variant of the
\protect\hyperlink{code-25}{Code 2 of 5} barcode symbology.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{code-25}{Industrial 2 of 5}, Standard 2 of 5.
\item
\protect\hyperlink{iata-2-of-5}{IATA 2 of 5}, Computer Identics 2 of
5.
\item
\protect\hyperlink{matrix-2-of-5}{Matrix 2 of 5}.
\item
\protect\hyperlink{coop-2-of-5}{COOP 2 of 5}.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-60}
\begin{itemize}
\tightlist
\item
The data consists of any number of digits.
\item
The \textbf{includecheck} option calculates the check digit.
\end{itemize}
\hypertarget{coop-2-of-5}{\subsubsection{COOP 2 of
5}\label{coop-2-of-5}}
\textbf{COOP 2 of 5} is a variant of the
\protect\hyperlink{code-25}{Code 2 of 5} barcode symbology.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{code-25}{Industrial 2 of 5}, Standard 2 of 5.
\item
\protect\hyperlink{iata-2-of-5}{IATA 2 of 5}, Computer Identics 2 of
5.
\item
\protect\hyperlink{datalogic-2-of-5}{Datalogic 2 of 5}.
\item
\protect\hyperlink{matrix-2-of-5}{Matrix 2 of 5}.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-61}
\begin{itemize}
\tightlist
\item
The data consists of any number of digits.
\item
The \textbf{includecheck} option calculates the check digit.
\end{itemize}
\subsubsection{Code 49}\label{code-49}
The \textbf{Code 49} barcode symbology is 2D stacked-linear barcode that
can encode 128 character ASCII.
Also known as: USS-49.
Standards: ANSI/AIM BC6 - USS Code 49.
\paragraph{Data and Options}\label{data-and-options-62}
\begin{itemize}
\tightlist
\item
The input can consist of any ASCII data.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
When the \textbf{parsefnc} option is specified, non-data function
characters can be specified by \texttt{\^{}FNC1} through
\texttt{\^{}FNC3}.
\item
The \textbf{mode} option specifies the mode for the symbol. It is
usual to leave this unspecified in which case the most appropriate
mode that results in the shortest symbol is automatically selected
based in the input data.
\begin{itemize}
\tightlist
\item
\texttt{mode=0} - regular alphanumeric mode
\item
\texttt{mode=1} - append mode
\item
\texttt{mode=2} - numeric mode
\item
\texttt{mode=3} - group alphanumeric mode
\item
\texttt{mode=4} - alphanumeric mode starting shift 1
\item
\texttt{mode=5} - alphanumeric mode starting shift 2
\item
\texttt{mode=6} - reserved
\end{itemize}
\item
The \textbf{pos} option specifies this symbol to be part of multi-part
structured data, i.e.~selecting \texttt{mode=3}. For example
\texttt{pos=25} specifies this to be the second symbol in a group of
five symbols.
\item
The \textbf{rows} option specifies the number of rows in the symbol,
between \emph{2} and \emph{8}.
\item
If \textbf{rows} is unspecified the encoder will default to the
smallest number of rows that can hold the given data.
\item
The \textbf{rowheight} option specifies the height of the bars in each
row in points. The default is \emph{10}.
\item
The \textbf{sepheight} option specifies the height of the separator
bars enclosing the rows in points. The default is \emph{1}.
\end{itemize}
\paragraph{Examples}\label{examples-40}
\begin{verbatim}
Data: MULTIPLE ROWS IN CODE 49
Options:
Encoder: code49
\end{verbatim}
\includegraphics{images/code49-1.eps}
\begin{verbatim}
Data: CODE 49
Options: rows=8
Encoder: code49
\end{verbatim}
\includegraphics{images/code49-2.eps}
\begin{verbatim}
Data: Short bars, fat seperators
Options: rows=8 rowheight=6 sepheight=2
Encoder: code49
\end{verbatim}
\includegraphics{images/code49-3.eps}
\subsubsection{Code One}\label{code-one}
\textbf{Code One} was the earliest public domain 2D matrix-style
barcode. It is used by the health care and recycling industry and can
encode full 256 character extended-ASCII.
Also known as: Code 1, Code 1S.
Standards: AIM USS - Code One.
\paragraph{Data and Options}\label{data-and-options-63}
\begin{itemize}
\tightlist
\item
The data field can consist of any ASCII data for \emph{standard} and
\emph{T-type} symbols.
\item
Note: \emph{S-type} symbols are special in that they represent a
numeric value so may only contain digits.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters, e.g.
\texttt{\^{}029} for \emph{GS}, etc.
\item
When the \textbf{parsefnc} option is specified, non-data function
characters can be specified by \texttt{\^{}FNC1}, \texttt{\^{}FNC3}.
\item
The \textbf{version} option is used to specify the size and type of
the symbol:
\begin{itemize}
\tightlist
\item
\texttt{A}, \texttt{B}, \texttt{C}, \texttt{D}, \texttt{E},
\texttt{F}, \texttt{G}, \texttt{H} - for standard format symbols
(default automatic selection)
\item
\texttt{version=T-16}, \texttt{version=T-32}, \texttt{version=T-48}
- \emph{T-type} symbols
\item
\texttt{version=S-10}, \texttt{version=S-20}, \texttt{version=S-30}
- \emph{S-type} symbols
\end{itemize}
\end{itemize}
\paragraph{Examples}\label{examples-41}
\begin{verbatim}
Data: Code One
Options:
Encoder: codeone
\end{verbatim}
\includegraphics{images/codeone-1.eps}
\begin{verbatim}
Data: Code One
Options: version=C
Encoder: codeone
\end{verbatim}
\includegraphics{images/codeone-2.eps}
\begin{verbatim}
Data: Code One
Options: version=T-32
Encoder: codeone
\end{verbatim}
\includegraphics{images/codeone-3.eps}
\begin{verbatim}
Data: 406990
Options: version=S-10
Encoder: codeone
\end{verbatim}
\includegraphics{images/codeone-4.eps}
\hypertarget{msi-plessey}{\subsubsection{MSI
Plessey}\label{msi-plessey}}
\textbf{MSI Plessey} is a continuous, non-self-checking, arbitrary
length, numeric barcode symbology.
Also known as: MSI, MSI Modified Plessey.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{plessey}{Plessey (UK)} is the original barcode upon
which MSI Modified Plessey was based.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-64}
\begin{itemize}
\tightlist
\item
The data can consist of any number of digits.
\item
The \textbf{includecheck} option calculates the check digit or check
digits.
\item
The \textbf{includecheckintext} option makes the calculated check
characters appear in the human readable text.
\item
The \textbf{checktype} option is used to specify the type of checksum,
either:
\begin{itemize}
\tightlist
\item
\texttt{checktype=mod10} (default)
\item
\texttt{checktype=mod1010}
\item
\texttt{checktype=mod11}
\item
\texttt{checktype=ncrmod11}
\item
\texttt{checktype=mod1110}
\item
\texttt{checktype=ncrmod1110}
\end{itemize}
\item
The \textbf{badmod11} option allows a \texttt{checktype=mod11}
checksum value of 10 to be encoded with a pair of check digits
\emph{10}. Normally in \texttt{checktype=mod11}, any input whose
checksum evaluates to \emph{10} is considered invalid having no
correct representation.
\end{itemize}
\paragraph{Examples}\label{examples-42}
\begin{verbatim}
Data: 0123456789
Options: includecheck includetext
Encoder: msi
\end{verbatim}
\includegraphics{images/msi-1.eps}
\begin{verbatim}
Data: 0123456789
Options: includecheck checktype=mod1110 includetext includecheckintext
Encoder: msi
\end{verbatim}
\includegraphics{images/msi-2.eps}
\begin{verbatim}
Data: 0123456785
Options: includecheck checktype=mod11 badmod11 includetext includecheckintext
Encoder: msi
\end{verbatim}
\includegraphics{images/msi-3.eps}
\hypertarget{plessey}{\subsubsection{Plessey}\label{plessey}}
\textbf{Plessey} is a continuous, arbitrary length barcode symbology for
encoding hexadecimal data.
Also known as: Anker Code.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{msi-plessey}{MSI Modified Plessey} is a variant of
the Plessey (UK) barcode developed by the MSI Data Corporation.
\end{itemize}
\paragraph{Data and Options}\label{data-and-options-65}
\begin{itemize}
\tightlist
\item
The data can contain any of the following:
\begin{itemize}
\tightlist
\item
Numbers \texttt{0-9}
\item
Capital letters \texttt{A-F}
\end{itemize}
\item
Two manditory check characters implementing a CRC check are
automatically included.
\item
The \textbf{includecheckintext} option makes the calculated check
characters appear in the human readable text.
\item
The \textbf{unidirectional} option generates a unidirectional Plessey
symbol.
\end{itemize}
\paragraph{Examples}\label{examples-43}
Equivalent symbols, the latter displaying the two mandatory check
characters:
\begin{verbatim}
Data: 01234ABCD
Options: includetext
Encoder: plessey
\end{verbatim}
\includegraphics{images/plessey-1.eps}
\begin{verbatim}
Data: 01234ABCD
Options: includetext includecheckintext
Encoder: plessey
\end{verbatim}
\includegraphics{images/plessey-2.eps}
A unidirectional symbol:
\begin{verbatim}
Data: 01234ABCD
Options: unidirectional
Encoder: plessey
\end{verbatim}
\includegraphics{images/plessey-3.eps}
\subsubsection{PosiCode}\label{posicode}
\textbf{PosiCode} is a continuous, variable length, non-self-checking,
bidirectional barcode symbology that is designed for use within printing
processes where it is difficult to precisely control the width of a bar.
Standards: ITS PosiCode.
\paragraph{Data and Options}\label{data-and-options-66}
\begin{itemize}
\tightlist
\item
The data field can hold the following:
\begin{itemize}
\tightlist
\item
For \emph{standard} symbols: Any 256-bit extended ASCII data.
\item
\emph{FNC4} function characters will be inserted automatically to
allow the encoding of extended ASCII characters.
\item
For \emph{limited} symbols: letters \texttt{A-Z}, digits
\texttt{0-9}, symbols \texttt{-} and \texttt{.}
\end{itemize}
\item
The \textbf{version} option is used to specify the variant of the
symbol, either:
\begin{itemize}
\tightlist
\item
\texttt{version=a} (default)
\item
\texttt{version=b}
\item
\texttt{version=limiteda}
\item
\texttt{version=limitedb}
\end{itemize}
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters, e.g.
\texttt{\^{}029} for \emph{GS}, etc.
\item
When the \textbf{parsefnc} option is specified, non-data function
characters can be specified by \texttt{\^{}FNC1} through
\texttt{\^{}FNC3}.
\item
The \textbf{inkspread} option can be used to adjust the width of the
bars.
\end{itemize}
\paragraph{Example PosiCode}\label{example-posicode}
Equivalent ways to generate a PosiCode A symbol:
\begin{verbatim}
Data: Abc123
Options:
Encoder: posicode
\end{verbatim}
\begin{verbatim}
Data: Abc123
Options: version=a
Encoder: posicode
\end{verbatim}
\includegraphics{images/posicode-1.eps}
PosiCode A including a \emph{GS} (ASCII 29) character:
\begin{verbatim}
Data: AB^029CD
Options: parse
Encoder: posicode
\end{verbatim}
\includegraphics{images/posicode-2.eps}
PosiCode A including an \emph{FNC2} special character:
\begin{verbatim}
Data: AB^FNC2CD
Options: parsefnc
Encoder: posicode
\end{verbatim}
\includegraphics{images/posicode-3.eps}
PosiCode B symbol with widened bars:
\begin{verbatim}
Data: Abc123
Options: version=b inkspread=-1
Encoder: posicode
\end{verbatim}
\includegraphics{images/posicode-4.eps}
\paragraph{Example Limited PosiCode}\label{example-limited-posicode}
Limited PosiCode A with narrowed bars:
\begin{verbatim}
Data: ABC-12.3
Options: version=limiteda
Encoder: posicode
\end{verbatim}
\includegraphics{images/posicode-5.eps}
Limited PosiCode B:
\begin{verbatim}
Data: ABC-12.3
Options: version=limitedb
Encoder: posicode
\end{verbatim}
\includegraphics{images/posicode-6.eps}
\hypertarget{telepen}{\subsubsection{Telepen}\label{telepen}}
\textbf{Telepen} is an arbitrary length barcode symbology for encoding
all 128 ASCII characters without the need for shift characters.
Also known as: Telepen Alpha, Telepen Full ASCII.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{telepen-numeric}{Telepen Numeric}.
\end{itemize}
Standards: USS Telepen.
\paragraph{Data and Options}\label{data-and-options-67}
\begin{itemize}
\tightlist
\item
The data can contain any standard ASCII data, values 0-127.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The mandatory check digit is automatically included.
\item
\emph{Deprecated: Use \protect\hyperlink{telepen-numeric}{Telepen
Numeric} instead. When the \textbf{numeric} option is given, the data
is read as either pairs of digits or \texttt{0X}, \texttt{1X}, etc.
The singular values \texttt{\^{}000} to \texttt{\^{}016} can also be
encoded using the \emph{parse} option.}
\end{itemize}
\paragraph{Examples}\label{examples-44}
\begin{verbatim}
Data: Telepen
Options: includetext
Encoder: telepen
\end{verbatim}
\includegraphics{images/telepen-1.eps}
\begin{verbatim}
Data: Telepen^013
Options: parse
Encoder: telepen
\end{verbatim}
\includegraphics{images/telepen-2.eps}
\hypertarget{telepen-numeric}{\subsubsection{Telepen
Numeric}\label{telepen-numeric}}
\textbf{Telepen Numeric} is a variant of the Telepen symbology for
efficient encoding of numeric data.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{telepen}{Telepen Alpha}.
\end{itemize}
Standards: USS Telepen.
\paragraph{Data and Options}\label{data-and-options-68}
\begin{itemize}
\tightlist
\item
The data is provided as either pairs of digits or \texttt{0X},
\texttt{1X}, etc. The singular values \texttt{\^{}000} to
\texttt{\^{}016} can also be encoded using the \emph{parse} option.
\item
When the \textbf{parse} option is specified, any instances of
\texttt{\^{}NNN} in the data field are replaced with their equivalent
ASCII value, useful for specifying unprintable characters.
\item
The mandatory check digit is automatically included.
\end{itemize}
\paragraph{Examples}\label{examples-45}
\begin{verbatim}
Data: 123456
Options:
Encoder: telepennumeric
\end{verbatim}
\includegraphics{images/telepen-3.eps}
\begin{verbatim}
Data: 1X345X
Options:
Encoder: telepennumeric
\end{verbatim}
\includegraphics{images/telepen-4.eps}
\begin{verbatim}
Data: 1234^005
Options: parse includetext
Encoder: telepennumeric
\end{verbatim}
\includegraphics{images/telepen-5.eps}
\hypertarget{gs1-composite-symbols}{\subsection{GS1 Composite
Symbols}\label{gs1-composite-symbols}}
\textbf{GS1 Composite} barcode symbologies consist of a primary
component beneath a 2D component (variations of
\protect\hyperlink{micropdf417}{MicroPDF417} and
\protect\hyperlink{pdf417}{PDF417}) used to encode supplementary
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
formatted data}.
Variants:
\begin{itemize}
\tightlist
\item
\protect\hyperlink{ean-13-composite}{EAN-13 Composite} is a variant of
\protect\hyperlink{ean-13}{EAN-13}.
\item
\protect\hyperlink{ean-8-composite}{EAN-8 Composite} is a variant of
\protect\hyperlink{ean-8}{EAN-8}.
\item
\protect\hyperlink{upc-a-composite}{UPC-A Composite} is a variant of
\protect\hyperlink{upc-a}{UPC-A}.
\item
\protect\hyperlink{upc-e-composite}{UPC-E Composite} is a variant of
\protect\hyperlink{upc-e}{UPC-E}.
\item
\protect\hyperlink{gs1-databar-omnidirectional-composite}{GS1 DataBar
Omnidirectional Composite} is a variant of
\protect\hyperlink{gs1-databar-omnidirectional}{GS1 DataBar
Omnidirectional}.
\item
\protect\hyperlink{gs1-databar-stacked-omnidirectional-composite}{GS1
DataBar Stacked Omnidirectional Composite} is a variant of
\protect\hyperlink{gs1-databar-stacked-omnidirectional}{GS1 DataBar
Stacked Omnidirectional}.
\item
\protect\hyperlink{gs1-databar-expanded-composite}{GS1 DataBar
Expanded Composite} is a variant of
\protect\hyperlink{gs1-databar-expanded}{GS1 DataBar Expanded}.
\item
\protect\hyperlink{gs1-databar-expanded-stacked-composite}{GS1 DataBar
Expanded Stacked Composite} is a variant of
\protect\hyperlink{gs1-databar-expanded-stacked}{GS1 DataBar Expanded
Stacked}.
\item
\protect\hyperlink{gs1-databar-truncated-composite}{GS1 DataBar
Truncated Composite} is a variant of
\protect\hyperlink{gs1-databar-truncated}{GS1 DataBar Truncated}.
\item
\protect\hyperlink{gs1-databar-stacked-composite}{GS1 DataBar Stacked
Composite} is a variant of \protect\hyperlink{gs1-databar-stacked}{GS1
DataBar Stacked}.
\item
\protect\hyperlink{gs1-databar-limited-composite}{GS1 DataBar Limited
Composite} is a variant of \protect\hyperlink{gs1-databar-limited}{GS1
DataBar Limited}.
\item
\protect\hyperlink{gs1-128-composite}{GS1-128 Composite} is a variant
of \protect\hyperlink{gs1-128}{GS1-128}.
\end{itemize}
Standards: ISO/IEC 24723, ITS EAN.UCC Composite Symbology, AIM ISS -
EAN.UCC Composite Symbology, GS1 General Specifications.
\paragraph{Data and Options}\label{data-and-options-69}
\begin{itemize}
\tightlist
\item
The data field consists of a primary and secondary component separated
by a pipe \texttt{\textbar{}} character.
\item
The data for the primary component (preceding the pipe) is entered in
a format identical to the corresponding non-composite barcode
symbology.
\item
The data for the 2D component (following the pipe) is entered in
\protect\hyperlink{gs1-application-identifier-standard-format}{GS1
Application Identifier standard format}.
\item
For maximum efficiency, if the data for the 2D component contains a
number of application identifiers matching any of the specifications
below then they should be provided in this given order:
\begin{itemize}
\tightlist
\item
\texttt{(11)...(10)...}
\item
\texttt{(17)...(10)...}
\item
\texttt{(90)\{0-3\ digits\ not\ starting\ 0\}\{upper\ alpha\}...}
\end{itemize}
\item
The \textbf{ccversion} option is used to select a specific 2D
component:
\begin{itemize}
\tightlist
\item
\texttt{ccversion=a} - \protect\hyperlink{cc-a}{CC-A}
\item
\texttt{ccversion=b} - \protect\hyperlink{cc-b}{CC-B}
\item
\texttt{ccversion=c} - \protect\hyperlink{cc-c}{CC-C}
(\protect\hyperlink{gs1-128-composite}{GS1-128 Composite} only)
\end{itemize}
\item
If \textbf{ccversion} is not specified a CC-A component will be
selected if the data will fit, otherwise a CC-B component will be
used. In the case of \protect\hyperlink{gs1-128-composite}{GS1-128
Composite} a CC-C component will be used if the data does not fit
within either a CC-A or CC-B component.
\end{itemize}
\hypertarget{ean-13-composite}{\subsubsection{EAN-13
Composite}\label{ean-13-composite}}
\begin{verbatim}
Data: 331234567890|(99)1234-abcd
Options: includetext guardwhitespace
Encoder: ean13composite
\end{verbatim}
\includegraphics{images/ean13composite-1.eps}
\hypertarget{ean-8-composite}{\subsubsection{EAN-8
Composite}\label{ean-8-composite}}
\begin{verbatim}
Data: 12345670|(21)A12345678
Options: includetext guardwhitespace
Encoder: ean8composite
\end{verbatim}
\includegraphics{images/ean8composite-1.eps}
\hypertarget{upc-a-composite}{\subsubsection{UPC-A
Composite}\label{upc-a-composite}}
\begin{verbatim}
Data: 01600033610|(99)1234-abcd
Options: includetext
Encoder: upcacomposite
\end{verbatim}
\includegraphics{images/upcacomposite-1.eps}
\hypertarget{upc-e-composite}{\subsubsection{UPC-E
Composite}\label{upc-e-composite}}
\begin{verbatim}
Data: 0121230|(15)021231
Options: includetext
Encoder: upcecomposite
\end{verbatim}
\includegraphics{images/upcecomposite-1.eps}
\hypertarget{gs1-databar-omnidirectional-composite}{\subsubsection{GS1
DataBar Omnidirectional
Composite}\label{gs1-databar-omnidirectional-composite}}
\begin{verbatim}
Data: (01)03612345678904|(11)990102
Options:
Encoder: databaromnicomposite
\end{verbatim}
\includegraphics{images/databaromnicomposite-1.eps}
\hypertarget{gs1-databar-stacked-omnidirectional-composite}{\subsubsection{GS1
DataBar Stacked Omnidirectional
Composite}\label{gs1-databar-stacked-omnidirectional-composite}}
\begin{verbatim}
Data: (01)03612345678904|(11)990102
Options:
Encoder: databarstackedomnicomposite
\end{verbatim}
\includegraphics{images/databarstackedomnicomposite-1.eps}
\hypertarget{gs1-databar-expanded-composite}{\subsubsection{GS1 DataBar
Expanded Composite}\label{gs1-databar-expanded-composite}}
\begin{verbatim}
Data: (01)93712345678904(3103)001234|(91)1A2B3C4D5E
Options:
Encoder: databarexpandedcomposite
\end{verbatim}
\includegraphics{images/databarexpandedcomposite-1.eps}
\hypertarget{gs1-databar-expanded-stacked-composite}{\subsubsection{GS1
DataBar Expanded Stacked
Composite}\label{gs1-databar-expanded-stacked-composite}}
\begin{verbatim}
Data: (01)00012345678905(10)ABCDEF|(21)12345678
Options: segments=4
Encoder: databarexpandedstackedcomposite
\end{verbatim}
\includegraphics{images/databarexpandedstackedcomposite-1.eps}
\hypertarget{gs1-databar-truncated-composite}{\subsubsection{GS1 DataBar
Truncated Composite}\label{gs1-databar-truncated-composite}}
\begin{verbatim}
Data: (01)03612345678904|(11)990102
Options:
Encoder: databartruncatedcomposite
\end{verbatim}
\includegraphics{images/databartruncatedcomposite-1.eps}
\hypertarget{gs1-databar-stacked-composite}{\subsubsection{GS1 DataBar
Stacked Composite}\label{gs1-databar-stacked-composite}}
\begin{verbatim}
Data: (01)03412345678900|(17)010200
Options:
Encoder: databarstackedcomposite
\end{verbatim}
\includegraphics{images/databarstackedcomposite-1.eps}
\hypertarget{gs1-databar-limited-composite}{\subsubsection{GS1 DataBar
Limited Composite}\label{gs1-databar-limited-composite}}
\begin{verbatim}
Data: (01)03512345678907|(21)abcdefghijklmnopqrstuv
Options:
Encoder: databarlimitedcomposite
\end{verbatim}
\includegraphics{images/databarlimitedcomposite-1.eps}
\hypertarget{gs1-128-composite}{\subsubsection{GS1-128
Composite}\label{gs1-128-composite}}
GS1-128 Composite with a CC-A 2D component:
\begin{verbatim}
Data: (01)03212345678906|(21)A1B2C3D4E5F6G7H8
Options:
Encoder: gs1-128composite
\end{verbatim}
\includegraphics{images/ean128composite-1.eps}
GS1-128 Composite with a CC-C 2D component:
\begin{verbatim}
Data: (00)030123456789012340|(02)13012345678909(37)24(10)1234567ABCDEFG
Options: ccversion=c
Encoder: gs1-128composite
\end{verbatim}
\includegraphics{images/ean128composite-2.eps}
\hypertarget{cc-a}{\subsubsection{CC-A}\label{cc-a}}
Isolated CC-A 2D component:
\begin{verbatim}
Data: (01)95012345678903
Options: ccversion=a cccolumns=3
Encoder: gs1-cc
\end{verbatim}
\includegraphics{images/gs1composite-1.eps}
\hypertarget{cc-b}{\subsubsection{CC-B}\label{cc-b}}
Isolated CC-B 2D component:
\begin{verbatim}
Data: (01)95012345678903(3103)000123
Options: ccversion=b cccolumns=4
Encoder: gs1-cc
\end{verbatim}
\includegraphics{images/gs1composite-2.eps}
\hypertarget{cc-c}{\subsubsection{CC-C}\label{cc-c}}
Isolated CC-C 2D component:
\begin{verbatim}
Data: (02)13012345678909(37)24(10)1234567ABCDEFG
Options: ccversion=c cccolumns=5
Encoder: gs1-cc
\end{verbatim}
\includegraphics{images/gs1composite-3.eps}
\subsection{Raw Symbols}\label{raw-symbols}
\subsubsection{DAFT}\label{daft}
\textbf{DAFT} is an encoder for directly specifying the descender,
ascender, full-height, tracker-bar succession for a custom 4 state
barcode symbol.
\paragraph{Data and Options}\label{data-and-options-70}
\begin{itemize}
\tightlist
\item
The data field contains a sequence of the characters \texttt{D},
\texttt{A}, \texttt{F} or \texttt{T} to denote the descender,
ascender, full-height and tracker bars of a custom 4 state symbol.
\end{itemize}
\paragraph{Example}\label{example-16}
\begin{verbatim}
Data: FATDAFTDAD
Options:
Encoder: daft
\end{verbatim}
\includegraphics{images/daft-1.eps}
\subsubsection{Flattermarken}\label{flattermarken}
\textbf{Flattermarken} are identification marks used in book production
that facilitate the proper arrangement of bound sections by a book
binder.
\paragraph{Data and Options}\label{data-and-options-71}
\begin{itemize}
\tightlist
\item
The data field can holding any sequence of digits corresponds to a 9
module width with the following meaning:
\begin{itemize}
\tightlist
\item
\texttt{1-9}: a single mark exists in the corresponding module
position
\item
\texttt{0}: unmarked sequence of modules
\end{itemize}
\item
The \textbf{inkspread} option can be used to adjust the width of the
bars.
\item
If greater fidelity is required then the \protect\hyperlink{raw}{raw}
encoder should be used instead.
\end{itemize}
\paragraph{Example}\label{example-17}
\begin{verbatim}
Data: 1304
Options: inkspread=-1
Encoder: flattermarken
\end{verbatim}
\includegraphics{images/flattermarken-1.eps}
\hypertarget{raw}{\subsubsection{Raw}\label{raw}}
The \textbf{raw} encoder is used for directly specifying the space/bar
succession of a custom barcode symbol.
\paragraph{Data and Options}\label{data-and-options-72}
\begin{itemize}
\tightlist
\item
The data field contains an alternating sequence of widths (1 to 9) for
the bars and spaces of a custom symbol.
\end{itemize}
\paragraph{Example}\label{example-18}
\begin{verbatim}
Data: 331132131313411122131311333213114131131221323
Options: height=0.5
Encoder: raw
\end{verbatim}
\includegraphics{images/raw-1.eps}
\subsection{Partial Symbols}\label{partial-symbols}
\hypertarget{ean-2}{\subsubsection{EAN-2}\label{ean-2}}
\textbf{EAN-2} is the two-digit add-on code that accompanies a EAN or
UPC type barcode symbol such as an \protect\hyperlink{isbn}{ISBN} or
\protect\hyperlink{issn}{ISSN}.
Also known as: Two-Digit Add-On, Two-Digit Supplement, UPC-2
\paragraph{Data and Options}\label{data-and-options-73}
\begin{itemize}
\tightlist
\item
The data field must contain two digits.
\item
The \textbf{includetext} option should normally be supplied.
\end{itemize}
\paragraph{Example}\label{example-19}
\begin{verbatim}
Data: 05
Options: includetext guardwhitespace
Encoder: ean2
\end{verbatim}
\includegraphics{images/ean2-1.eps}
\hypertarget{ean-5}{\subsubsection{EAN-5}\label{ean-5}}
\textbf{EAN-5} is the five-digit add-on code that accompanies an EAN or
UPC type barcode symbol such as an \protect\hyperlink{isbn}{ISBN} or
\protect\hyperlink{issn}{ISSN}.
Also known as: Five-Digit Add-On, Five-Digit Supplement, UPC-5
\paragraph{Data and Options}\label{data-and-options-74}
\begin{itemize}
\tightlist
\item
The data field must contain five digits.
\item
The \textbf{includetext} option should normally be supplied.
\end{itemize}
\paragraph{Example}\label{example-20}
\begin{verbatim}
Data: 90200
Options: includetext guardwhitespace
Encoder: ean5
\end{verbatim}
\includegraphics{images/ean5-1.eps}
\hypertarget{gs1-application-identifier-standard-format}{\subsection{GS1
Application Identifier Standard
Format}\label{gs1-application-identifier-standard-format}}
Certain barcode symbologies (including
\protect\hyperlink{gs1-128}{GS1-128},
\protect\hyperlink{gs1-databar-omnidirectional}{GS1 DataBar
Omnidirectional}, \protect\hyperlink{gs1-datamatrix}{GS1 DataMatrix},
\protect\hyperlink{gs1-qr-code}{GS1 QR Code} and
\protect\hyperlink{gs1-composite-symbols}{GS1 Composite Symbols})
represent standardized GS1 data and require that their data field is
provided in GS1 Application Identifier standard format, consisting of a
concatenated string of \emph{AIs} along with their corresponding values.
The AIs are a set of approximately one hundred two-, three- or
four-digit prefixes written within parentheses that represent physical
attributes and business information, e.g.
\begin{itemize}
\tightlist
\item
\emph{(00)} is an eighteen-digit SSCC.
\item
\emph{(01)} is a fourteen-digit GTIN.
\item
\emph{(403)} is a variable-length routing code.
\end{itemize}
The following input represents GTIN \emph{0061414199996}; Expiration
Date \emph{1 January 2010}; Batch \emph{123ABC}; Serial
\emph{1234567890}:
\begin{verbatim}
(01)0061414199996(17)100101(10)123ABC(21)1234567890
\end{verbatim}
Encoders for barcode symbologies that expect data in GS1 Application
Identifier standard format will take care of parsing the input and
inserting any necessary \emph{FNC1} characters to delimit variable
length fields.
\paragraph{GS1 Application Identifier
Definitions}\label{gs1-application-identifier-definitions}
The Application Identifier definitions are provided in the
\href{http://www.gs1.org/barcodes-epcrfid-id-keys/gs1-general-specifications}{GS1
General Specifications}. A summary is available
\href{http://en.wikipedia.org/wiki/GS1-128\#Full_list_of_Application_Identifiers}{here}
however this may be out of date.
\section{Options Reference}\label{options-reference}
\subsection{Check Digits}\label{check-digits}
\subsubsection{includecheck}\label{includecheck}
Generate check digit(s) for symbologies where the use of check digits is
optional.
\paragraph{Example}\label{example-21}
Calculate the optional check characters of this Code 93 symbol:
\begin{verbatim}
Data: CHECK ME OUT
Options: includecheck
Encoder: code93
\end{verbatim}
\includegraphics{images/optincludecheck.eps}
\subsubsection{includecheckintext}\label{includecheckintext}
Show the calculated check digit in the human readable text.
\paragraph{Notes}\label{notes}
\begin{itemize}
\tightlist
\item
For barcode symbologies where the check digit is not mandatory, this
option must be used in combination with \textbf{includecheck}.
\item
If any part of the checksum does not have a printable representation
then that part is not displayed.
\end{itemize}
\paragraph{Example}\label{example-22}
Display the check digit of this Royal Mail barcode:
\begin{verbatim}
Data: LE28HS9Z
Options: includetext includecheckintext
Encoder: royalmail
\end{verbatim}
\includegraphics{images/optincludecheckintext.eps}
\subsection{Input Processing}\label{input-processing}
\subsubsection{parse}\label{parse}
In supporting barcode symbologies, when the \emph{parse} option is
specified, any instances of \texttt{\^{}NNN} in the data field are
replaced with their equivalent ASCII value, useful for specifying
unprintable characters.
\paragraph{Example}\label{example-23}
Equivalent symbols:
\begin{verbatim}
Data: This is Data Matrix
Options:
Encoder: datamatrix
\end{verbatim}
\begin{verbatim}
Data: This is ^068ata Matrix
Options: parse
Encoder: datamatrix
\end{verbatim}
\includegraphics{images/optparse.eps}
\subsubsection{parsefnc}\label{parsefnc}
In supporting barcode symbologies, when the \textbf{parsefnc} option is
specified, non-data function characters can be specified by escaped
combinations such as \texttt{\^{}FNC1}, \texttt{\^{}FNC4} and
\texttt{\^{}SFT/}.
\paragraph{Example}\label{example-24}
Code 93 including a special shift combination \texttt{(/)A} representing
\emph{!}:
\begin{verbatim}
Data: TERRY^SFT/A
Options: parsefnc includecheck
Encoder: code93
\end{verbatim}
\includegraphics{images/optparsefnc.eps}
\subsection{Symbol Dimensions}\label{symbol-dimensions}
\subsubsection{height}\label{height}
Height of longest bar, in inches.
\paragraph{Example}\label{example-25}
A 1/2 inch tall EAN-13:
\begin{verbatim}
Data: 977147396801
Options: includetext height=0.5
Encoder: ean13
\end{verbatim}
\includegraphics{images/optheight.eps}
\subsubsection{width}\label{width}
Stretch the symbol to precisely this width, in inches.
\paragraph{Notes}\label{notes-1}
\begin{itemize}
\tightlist
\item
This parameter literally stretches the symbol and text to the desired
width which will may distort the human readable text.
\item
For information about resizing symbols read the article on
\protect\hyperlink{resizing-symbols}{resizing symbols}.
\end{itemize}
\paragraph{Example}\label{example-26}
A 2 inch wide Code 93 symbol:
\begin{verbatim}
Data: TERRY
Options: width=2
Encoder: code93
\end{verbatim}
\includegraphics{images/optwidth.eps}
\subsection{Bar Properties}\label{bar-properties}
\subsubsection{inkspread}\label{inkspread}
For linear barcodes, the amount by which to reduce the bar widths to
compensate for inkspread, in points.
For matrix barcodes, the amount by which the reduce the width and height
of dark modules to compensate for inkspread, in points.
\paragraph{Notes}\label{notes-2}
\begin{itemize}
\tightlist
\item
Negative values will increase the bar width.
\end{itemize}
\paragraph{Example}\label{example-27}
Code 39 for a printer with very runny ink:
\begin{verbatim}
Data: TEZ
Options: inkspread=0.6
Encoder: code39
\end{verbatim}
\includegraphics{images/optinkspread.eps}
\subsubsection{inkspreadh}\label{inkspreadh}
For matrix barcodes, the amount by which the reduce the width of dark
modules to compensate for inkspread, in points.
Note: inkspreadh is most useful for stacked-linear type barcodes such as
PDF417 and Codablock F.
\subsubsection{inkspreadv}\label{inkspreadv}
For matrix barcodes, the amount by which the reduce the height of dark
modules to compensate for inkspread, in points.
\subsection{Text Properties}\label{text-properties}
\subsubsection{includetext}\label{includetext}
Show human readable text for data in symbol.
\paragraph{Notes}\label{notes-3}
\begin{itemize}
\tightlist
\item
If a character in the data does not have a printable representation
then it is not displayed
\end{itemize}
\paragraph{Example}\label{example-28}
Display the text encoded in this Code 39 symbol:
\begin{verbatim}
Data: SEE ME
Options: includetext
Encoder: code39
\end{verbatim}
\includegraphics{images/optincludetext.eps}
\subsubsection{textfont}\label{textfont}
The font name for text.
\paragraph{Notes}\label{notes-4}
\begin{itemize}
\tightlist
\item
The font name must be the literal name of a PostScript font that is
available to the system.
\item
This option should be used in combination with the
\textbf{includetext} option.
\end{itemize}
\paragraph{Example}\label{example-29}
Customise the human readable text of this USPS POSTNET symbol
\begin{verbatim}
Data: 64501
Options: includetext textfont=Times-Roman textsize=9
Encoder: postnet
\end{verbatim}
\includegraphics{images/opttextfont.eps}
\subsubsection{textsize}\label{textsize}
The font size of the text in points.
\paragraph{Note}\label{note}
\begin{itemize}
\tightlist
\item
This option should be used in combination with the
\textbf{includetext} option.
\end{itemize}
\paragraph{Example}\label{example-30}
Customise the human readable text of this USPS POSTNET symbol
\begin{verbatim}
Data: 64501
Options: includetext textfont=Times-Roman textsize=9
Encoder: postnet
\end{verbatim}
\includegraphics{images/opttextfont.eps}
\subsubsection{textgaps}\label{textgaps}
The inter-character spacing of the text.
\paragraph{Note}\label{note-1}
\begin{itemize}
\tightlist
\item
This option should be used in combination with the \textbf{textxalign}
option.
\end{itemize}
\subsection{Text Positioning}\label{text-positioning}
\subsubsection{textxalign}\label{textxalign}
The \textbf{textxalign} option is used to specify where to horizontally
position the text.
\begin{itemize}
\tightlist
\item
\texttt{textxalign=offleft}
\item
\texttt{textxalign=left}
\item
\texttt{textxalign=center}
\item
\texttt{textxalign=right}
\item
\texttt{textxalign=offright}
\item
\texttt{textxalign=justify}
\end{itemize}
\paragraph{Notes}\label{notes-5}
\begin{itemize}
\tightlist
\item
By default (in the absence of \textbf{textxalign} or
\textbf{textyalign}), each character of text is placed immediately
below the corresponding modules where this is possible.
\item
Where there isn't such a direct relationship then the default is to
position the text centrally beneath the symbol.
\end{itemize}
\subsubsection{textyalign}\label{textyalign}
The \textbf{textyalign} option is used to specify where to vertically
position the text.
\begin{itemize}
\tightlist
\item
\texttt{textyalign=below}
\item
\texttt{textyalign=center}
\item
\texttt{textyalign=above}
\end{itemize}
\paragraph{Notes}\label{notes-6}
\begin{itemize}
\tightlist
\item
By default (in the absence of \textbf{textxalign} or
\textbf{textyalign}), each character of text is placed immediately
below the corresponding modules where this is possible.
\item
Where there isn't such a direct relationship then the default is to
position the text centrally beneath the symbol.
\end{itemize}
\subsubsection{textxoffset}\label{textxoffset}
The horizontal position of the text in points relative to the default
position.
\subsubsection{textyoffset}\label{textyoffset}
The vertical position of the text in points relative to the default
position.
\subsection{Border Properties}\label{border-properties}
\subsubsection{showborder}\label{showborder}
Display a border around the symbol.
\paragraph{Example}\label{example-31}
Display a customised border around this Codabar symbol:
\begin{verbatim}
Data: A3+14-63B
Options: includetext showborder borderwidth=2 borderbottom=8
Encoder: rationalizedCodabar
\end{verbatim}
\includegraphics{images/optborder.eps}
\subsubsection{borderwidth}\label{borderwidth}
Width of the border, in points.
\subsubsection{borderleft}\label{borderleft}
Gap between the left edge of the border and the symbol, in points.
\subsubsection{borderright}\label{borderright}
Gap between the right edge of the border and the symbol, in points.
\subsubsection{bordertop}\label{bordertop}
Gap between the top edge of the border and the symbol, in points.
\subsubsection{borderbottom}\label{borderbottom}
Gap between the bottom edge of the border and the symbol, in points.
\subsection{Symbol Colors}\label{symbol-colors}
\subsubsection{barcolor}\label{barcolor}
Color of the bars or dark modules, either as a hex \texttt{RRGGBB} value
or a hex \texttt{CCMMYYKK} value.
\subsubsection{backgroundcolor}\label{backgroundcolor}
Color of the light background or light modules, either as a hex
\texttt{RRGGBB} value or a hex \texttt{CCMMYYKK} value.
\subsubsection{bordercolor}\label{bordercolor}
Color of the border, either as a hex \texttt{RRGGBB} value or a hex
\texttt{CCMMYYKK} value.
\subsubsection{textcolor}\label{textcolor}
Color of the respective component, either as a hex \texttt{RRGGBB} value
or a hex \texttt{CCMMYYKK} value.
\paragraph{Examples}\label{examples-46}
Colorized Code 11 symbol using the RGB colour space:
\begin{verbatim}
Data: 0123456789
Options: includetext barcolor=AA0000 textcolor=008888 backgroundcolor=FFFF60 showborder bordercolor=0000FF textyoffset=-8
Encoder: code11
\end{verbatim}
\includegraphics{images/optcolorrgb.eps}
Colorized Code 11 symbol using the CMYK colour space:
\begin{verbatim}
Data: 0123456789
Options: includetext barcolor=AA000000 textcolor=00888844 backgroundcolor=CCCC6000 showborder bordercolor=00FF0088
Encoder: code11
\end{verbatim}
\includegraphics{images/optcolorcmyk.eps}
\subsection{EAN-UPC Add Ons}\label{ean-upc-add-ons}
\subsubsection{addontextfont}\label{addontextfont}
The font name of the add on text.
\paragraph{Notes}\label{notes-7}
\begin{itemize}
\tightlist
\item
The font name must be the literal name of a PostScript available font.
\item
These options must be used in combination with the
\textbf{includetext} option.
\end{itemize}
\subsubsection{addontextsize}\label{addontextsize}
The size of the add on text, in points
\paragraph{Notes}\label{notes-8}
\begin{itemize}
\tightlist
\item
These options must be used in combination with the
\textbf{includetext} option.
\end{itemize}
\paragraph{Example}\label{example-32}
Customise the human readable text of this USPS POSTNET symbol
\begin{verbatim}
Data: 64501
Options: includetext textfont=Times-Roman textsize=9
Encoder: postnet
\end{verbatim}
\includegraphics{images/opttextfont.eps}
\subsubsection{addontextxoffset}\label{addontextxoffset}
Overrides the default horizontal positioning of the add on text.
\subsubsection{addontextyoffset}\label{addontextyoffset}
Overrides the default vertical positioning of the add on text.
\subsection{EAN-UPC Guards}\label{ean-upc-guards}
\subsubsection{guardwhitespace}\label{guardwhitespace}
Display white space guards.
\paragraph{Example}\label{example-33}
ISBN-13 with tiny white space guard:
\begin{verbatim}
Data: 978-1-873671-00
Options: includetext guardwhitespace guardwidth=3 guardheight=3
Encoder: isbn
\end{verbatim}
\includegraphics{images/optguardsize.eps}
\subsubsection{guardwidth}\label{guardwidth}
Width of the whitespace guards, in points.
\subsubsection{guardheight}\label{guardheight}
Height of the whitespace guards, in points.
\subsubsection{guardleftpos}\label{guardleftpos}
Override the default horizontal position of the left whitespace guard.
\subsubsection{guardrightpos}\label{guardrightpos}
Override the default horizontal position of the right whitespace guard.
\subsubsection{guardleftypos}\label{guardleftypos}
Override the default vertical position of the left whitespace guard.
\subsubsection{guardrightypos}\label{guardrightypos}
Override the default vertical position of the right whitespace guard.
\paragraph{Example}\label{example-34}
EAN-8 with very mangled white space guards:
\begin{verbatim}
Data: 01335583
Options: includetext guardwhitespace guardleftpos=14 guardrightpos=7 guardleftypos=15 guardrightypos=4
Encoder: ean8
\end{verbatim}
\includegraphics{images/optguardpos.eps}
|