Barcode Reference EN PDF
Barcode Reference EN PDF
Barcode Reference EN PDF
Barcode Overview
V ers io n 1 1
Reference
11 J un e 2 01 8
T EC- IT Da te n v er arb e it un g G m bH
Ha ns -W agner - Str . 6
A- 44 0 0 S te yr , A us t ri a
t + + 43 ( 0)7 2 52 72 7 20
f + + 43 ( 0)7 2 52 72 7 20 77
of f ic e @ tec - i t.c om
ww w. tec - i t.c om
T EC- IT Ba r cod e So ft w are R ef e ren c e
1 Disclaimer
The actual version of this product (document) is available as is. TEC-IT declines all warranties,
which go beyond applicable rights. The licensee (or reader) bears all risks that might take place
during the use of the system (the documentation). TEC-IT and its contractual partner cannot be
penalized for direct and indirect damages or losses (this includes non-restrictive, damages through
loss of revenues, constriction in the exercise of business, loss of business information or any kind of
commercial loss), which is caused by use or inability to use the product (documentation), although
the possibility of such damage was pointed out by TEC-IT.
We reserve all rights to this document and the information contained therein. Reproduction,
use or disclosure to third parties without express authority is strictly forbidden.
Für dieses Dokument und den darin dargestellten Gegenstand behalten wir uns alle Rechte
vor. Vervielfältigung, Bekanntgabe an Dritte oder Verwendung außerhalb des vereinbarten
Zweckes sind nicht gestattet.
© 1998-2018
TEC-IT Datenverarbeitung GmbH
Hans-Wagner-Str. 6
A-4400 Austria
t.: +43 (0)7252 72720
f.: +43 (0)7252 72720 77
https://www.tec-it.com
Page 2 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
2 Index
1 Disclaimer 2
2 Index 3
2.1 Table of Figures 7
2.2 List of Tables 7
3 Introduction 9
3.1 Scope of this Document 9
3.2 Barcode Types 9
3.2.1 Linear 1D Barcodes 9
3.2.2 2D Barcodes (Stacked) 9
3.2.3 2D Barcodes (Matrix Codes) 10
3.2.4 Composite Codes 10
3.3 Barcode Glossary 11
4 Important Barcode Parameters 12
4.1 Barcode Symbology 12
4.2 Module Width 12
4.2.1 Introduction 12
4.2.2 Optimize the Module Width 12
4.2.3 Module Width and Reading Distance 13
4.3 Bar Width Reduction (Pixel Shaving) 13
4.4 Quiet Zone 14
4.5 Print Ratio and Ratio Format 14
4.6 Format 15
4.6.1 Format Examples 16
4.7 Escape Sequences (Encoding Binary Data) 16
4.8 Check Digits 18
5 Application Identifiers (AI) 20
5.1 Introduction 20
5.2 Examples 20
5.2.1 Batch Number 20
5.2.2 Multiple AIs within one Barcode 20
5.2.3 GS1-128 with embedded Check Digit 21
5.3 GS1 DataBar Expanded / GS1 DataBar Expanded Stacked 21
5.3.1 AIs with a Fixed Length 22
5.3.1.1 AI(01) and Weight 22
5.3.1.2 AI(01), Weight and Date 22
5.3.2 AIs with Variable Lengths 22
5.3.2.1 AI (01) and Price 22
5.3.2.2 AI (01) 22
5.4 GS1 Composite Symbology 22
5.4.1 Compressed Sequences of AIs 22
5.4.2 AI (90) 23
6 Barcode Symbologies 24
6.1 Linear Symbologies (1D Codes) 24
6.1.1 Bookland 24
6.1.2 Codabar (Rationalized Version) 25
6.1.3 Code 11 25
6.1.4 Code 128 26
6.1.5 Code 128 Subset A 26
6.1.6 Code 128 Subset B 27
6.1.7 Code 128 Subset C 27
6.1.8 Code 2 of 5 Standard (Code 2 of 5 Matrix) 27
6.1.9 Code 2 of 5 Data Logic 28
6.1.10 Code 2 of 5 IATA 28
6.1.11 Code 2 of 5 Industrial 29
6.1.12 Code 2 of 5 Interleaved 29
6.1.13 Code 2 of 7 29
6.1.14 Code 25 29
6.1.15 Code 39 (3of9) 30
6.1.16 Code 32 30
6.1.17 Code 39 Extended 31
6.1.18 Code 93 31
6.1.19 Code 93 Extended 31
6.1.20 DAFT Code 32
6.1.21 DOD LOGMARS 32
6.1.22 DUN-14 32
Page 3 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.1.23 DUNS 32
6.1.24 EAN-128 (GS1-128) 32
6.1.25 EAN-13 33
6.1.26 EAN-13 with 2 Digits Add-On 34
6.1.27 EAN-13 with 5 Digits Add-On 34
6.1.28 EAN-14 34
6.1.29 EAN-18 34
6.1.30 EAN-8 35
6.1.31 EAN-8 with 2 Digits Add-On 35
6.1.32 EAN-8 with 5 Digits Add-On 35
6.1.33 FIN Code (Fahrzeug-Identifizierungsnummer) 36
6.1.34 Flattermarken 36
6.1.35 GS1-128 36
6.1.36 GTIN 36
6.1.37 HIBC 37
6.1.38 I-2/5 37
6.1.39 ISBN Code (ISBN 13) 37
6.1.39.1 Example 37
6.1.39.2 ISBN Additional Data 37
6.1.40 ISBT-128 38
6.1.41 ISMN 38
6.1.42 ISSN 39
6.1.43 ITF-14 39
6.1.44 JAN 40
6.1.45 LAETUS-Code 40
6.1.46 LOGMARS 40
6.1.47 MSI 40
6.1.48 NTIN Code 41
6.1.49 NVE-18 (Nummer der Versandeinheit) 41
6.1.50 NW-7 41
6.1.51 Pharmacode One-Track 42
6.1.52 Pharmacode Two-Track 42
6.1.53 Pharmacy Product Number Code (PPN Code) 43
6.1.54 Pharma Zentralnummer (PZN) 44
6.1.54.1 PZN7: 6 Digits + 1 Check Digit (valid until 2012/12/31) 44
6.1.54.2 PZN8: 7 Digits + 1 Check Digit (valid from 2013/01/01) 44
6.1.55 Plessey Code 44
6.1.56 Rational Codabar 44
6.1.57 SCC-14 44
6.1.58 SSCC-18 45
6.1.59 Telepen Alpha 45
6.1.60 Telepen 45
6.1.61 UCC-128 45
6.1.62 UPC 12 Digits 46
6.1.63 UPC Version A 46
6.1.64 UPC Version A, 2 Digits Add-On 46
6.1.65 UPC Version A, 5 Digits Add-On 47
6.1.66 UPC Version E 47
6.1.67 UPC Version E, 2 Digits Add-On 47
6.1.68 UPC Version E, 5 Digits Add-On 48
6.1.69 UPC SCS (Shipping Container Symbols) 48
6.1.70 USD-4 49
6.1.71 USS ITF 2-5 49
6.1.72 USS Code 128 49
6.1.73 USS Code 39 49
6.1.74 VIN Code (Vehicle Identification Number) 49
6.2 Postal Codes (Linear/1D) 50
6.2.1 Australian Post Customer 50
6.2.2 Australian Post Customer 2 50
6.2.3 Australian Post Customer 3 50
6.2.4 Australian Post Redirection 50
6.2.5 Australian Post Reply Paid 51
6.2.6 Australian Post Routing 51
6.2.7 Brazilian CEPNet / Brazilian Postal Code 51
6.2.8 Deutsche Post Identcode 52
6.2.9 Deutsche Post Leitcode 52
6.2.10 DPD Code 52
6.2.11 Italian Postal Code 2 of 5 53
6.2.12 Japanese Postal Code 53
6.2.12.1 Direct Encoding Mode 53
6.2.12.2 Japanese Extraction Mode 53
6.2.12.3 Standard Dimensions 54
6.2.13 KIX – Dutch Postal Code 54
6.2.14 Korean Postal Authority 54
Page 4 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.2.14.1 Example 54
6.2.15 Planet 12 (Deprecated) 55
6.2.16 Planet 14 (Deprecated) 55
6.2.17 Royal Mail 4 State (RM4SCC) 55
6.2.18 Royal Mail Complex Mail Data Mark (CMDM) Mailmark® Barcode 55
6.2.19 Royal Mail Mailmark® 2D Barcode 56
6.2.19.1 Data Structure 56
6.2.19.2 Customer Content 56
6.2.19.3 Encoding 56
6.2.20 Royal Mail Mailmark® 4-state Barcode 57
6.2.21 Singapore Post 4-State Customer Code (SinPost) 57
6.2.22 Singapore Post 57
6.2.23 Swedish Postal Shipment Item ID 57
6.2.24 UPU S10 – Generic Postal Code 58
6.2.25 USPS Intelligent Mail® Barcode or IM® Barcode 58
6.2.26 USPS Intelligent Mail® Package Barcode 59
6.2.27 USPS Postnet (Deprecated) 60
6.2.27.1 USPS Postnet 5 60
6.2.27.2 USPS POSTNET 6 60
6.2.27.3 USPS POSTNET 9 60
6.2.27.4 USPS POSTNET 10 61
6.2.27.5 USPS POSTNET 11 61
6.2.27.6 USPS POSTNET 12 61
6.3 2D Symbologies 62
6.3.1 Aztec Code 62
6.3.1.1 Character Set 62
6.3.1.2 Layers and Core Type 62
6.3.1.3 The Maximum Data Capacity of Aztec Code 62
6.3.1.4 Format 63
6.3.2 Codablock F 63
6.3.3 Data Matrix 63
6.3.3.1 Encoding Modes 64
6.3.3.2 Data Capacity 64
6.3.3.3 Code Format 64
6.3.3.4 Compatibility Options 64
6.3.3.5 DMRE – Data Matrix Rectangular Extension 65
6.3.3.6 GS1 Data Matrix 65
6.3.3.7 Deutsche Post Premiumadress Data Matrix 66
6.3.3.8 DP PostMatrix 67
6.3.4 DotCode 68
6.3.4.1 Code Format 68
6.3.5 Han Xin Code 69
6.3.5.1 Data Capacity 69
6.3.6 MaxiCode 69
6.3.6.1 Data Capacity 69
6.3.6.2 Modes 70
6.3.6.3 MaxiCode & UPS® 70
6.3.7 MicroPDF417 72
6.3.8 Micro QR-Code 73
6.3.9 PDF417 73
6.3.9.1 Data Capacity 73
6.3.9.2 How to optimize PDF417 for FAX? 74
6.3.10 PDF417 Truncated 74
6.3.11 QR-Code (Model 2) 74
6.3.11.1 Kanji and Chinese Compaction 74
6.3.11.2 QR–Code Capacity 75
6.3.11.3 QR–Code Creation Speed 75
6.3.11.4 Codepages (Character Set) 75
6.3.11.5 Encoding Special Latin-1 Characters 76
6.3.12 QR-Code (ISO), former QR-Code 2005 77
6.3.13 Swiss QR Code 77
6.4 HIBC – Health Industry Bar Code 77
6.4.1 Supplier Labeling Standard (SLS) Formats 78
6.4.2 Provider Application Standard Formats 79
6.4.3 HIBC LIC 128 80
6.4.4 HIBC LIC 39 81
6.4.5 HIBC LIC Data Matrix 81
6.4.6 HIBC LIC QR-Code 81
6.4.7 HIBC LIC Aztec Code 82
6.4.8 HIBC LIC PDF417 82
6.4.9 HIBC LIC MicroPDF417 82
6.4.10 HIBC LIC Codablock F 83
6.4.11 HIBC PAS 128 83
6.4.12 HIBC PAS 39 83
Page 5 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Page 6 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
A.9.4 Create a 2D Barcode Image with the Module Width specified in Pixels 109
A.9.5 Optimize an Image using BCGetOptimalBitmapSize 109
Appendix B : Barcode Quiet Zones 110
B.1 Linear Symbologies 110
B.2 2D Symbologies 111
Appendix C : Extended Channel Interpretation (ECI) 113
C.1 ECI Overview 113
Page 7 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Page 8 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
3 Introduction
The reason for the many different types of barcodes is that barcodes are used in many different
operational areas. Thus, it is possible to select the most suitable barcode type to meet the
requirements of a particular industry.
Linear barcodes are known under names like Code 39, Code 128, UPC, EAN, 2of5...
Linear barcodes encode the information in one way (=one dimension), so they are also called one-
dimensional barcodes (1D). The information is stored in the relationship of the widths of the bars
(spaces) to each other.
In most of these symbologies the height of the bars is not relevant, except for some height-
modulated Postal Codes (e.g. Australian Post 4-State or USPS Intelligent Mail® Barcode / IM®
Barcode).
Page 9 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Such stacked or multi-row barcodes store information in two dimensions. Several stacked linear
barcodes are used to encode the information.
Two-dimensional barcodes like MaxiCode, Data Matrix or QR-Code encode information in two
dimensions. Compared to stacked symbologies the information is not stored by using different bar
(space) widths. Instead, the position of black (or white) dots is relevant.
(01)12345678901231
Figure 4: Composite Barcode Sample
Composite codes like GS1 DataBar Composite Symbology are combining linear with 2D (stacked)
symbologies. The advantage of such codes is that the linear code component encodes the most
important information. The 2D component is used for additional data. This separation ensures better
migration (e.g. with respect to scanning hardware) between linear and 2D technology.
Page 10 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Quiet zone An area free of any printing or marks that precedes the start
character of a barcode and follows the stop character.
The required minimal size of the quiet zone depends on the
barcode type. As a rule, the quiet zone should be ten times the
dimension of the module width or at least 1/4 inch (6.5 mm).
Human Readable This term refers to the entire encoded information of a barcode
Text shown in readable form. It is usually printed below the code. For
2D codes, no human readable text is used.
Discrete Codes Each character begins and ends with a bar. The spacing
between characters is not part of the code.
Continuous Code The spaces between the characters are also part of the code. An
example of a continuous code is the Code 2/5 Interleaved.
Start and Stop Distinct characters used at the beginning and end of each
Characters barcode symbol that provide the scanner with start and stop
reading instructions as well as scanning direction.
Self-checking Self-checking code uses the same pattern for each character.
Code For example, there can be five elements, two of them are wide
and three are narrow. Any deviation from this pattern would result
in an error.
Check Digit One or more characters included within the barcode, which are
used to perform a mathematical check to ensure the accuracy of
the scanned data. Check digits are mandatory with certain codes
or are even built into the symbology (as for Code-128)
Bearer Bars These are bars printed above and below the symbol. The bearer
bars are eliminating partial reads (as drawn in the example on
the right). Sometimes bearer bars surround the complete symbol
(e.g. ITF-14).
Page 11 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
In this chapter, you will find an explanation about the most important barcode parameters.
The symbology determines the format and the capabilities of the barcode. Check out chapter 6 for a
list of supported barcode symbologies. It depends on your application which symbology you should
use. For help, deciding the right symbology, you can contact TEC-IT Support.
The module width (or X dimension) is the width of the smallest bar (or space) in the barcode. The
minimal module width depends on the used symbology. In most specifications, the recommended
module width is at least 0.19 mms.
The default setting in TEC-IT software adapts the module width according to the bounding rectangle
of the barcode. The module width is computed automatically by dividing the width of the object by
the number of required modules. This depends on the number of data characters to be encoded.
The module width decreases as the data content increases.
When adjusting the module width to a fixed value, the resulting barcode can be wider than the
bounding rectangle. To avoid clipping, ensure that the entire barcode can be displayed with the
maximum data content and enlarge the barcode object if required.
Printing tolerances can lead to problems when decoding a barcode. A remedy for this problem is to
optimize the module width with respect to available printing resolutions.
Assume you want to print a barcode with a resolution of 300 dpi then one pixel equals 0.003333
inch (or 0.08466 mm) in such a case. To avoid raster errors, you should select a module width that
is an integer multiple of the pixel width (e.g. for 300 dpi a multiple of 0.08466 mm).
Page 12 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The actual reading distance for barcodes depends on two factors: the scanner hardware and the
module width of the barcode.
There is no scanner, which can read all barcodes (ranging from high-density codes to barcodes with
wide tracking) from all distances. Each barcode scanner has an optimum reading distance for bar-
codes with a certain module width. The manufacturer of the barcode scanner usually specifies the
correlation between the module width and the reading distance. The following table shows such an
exemplary specification.
Thus, depending on the module width the optimum reading distance for a specific scanner can be
identified. On the other hand, if the reading distance is given by the application, the required module
width for printing the barcodes may be adjusted.
Another word for bar width reduction (BWR) is “bar width correction” (BWC) or “pixel shaving”.
Bar width reduction is a common issue with printing bar codes. So called “dot gain” is part of every
printing process and leads to enlargement of bars (while the gaps are reduced). Depending on the
printing process, you must compensate these aberrations with the appropriate bar width reduction.
Page 13 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Sample values for dot gain (to compensate) are approximately 100µm with flexographic printing,
50µm with intaglio printing and 30µm with offset printing. The smaller the bar codes, the more
precise you must work. Depending on the bar code orientation to the printing direction, the printing
accuracy and printing process may change.
Bar width reduction may be applied also for laser printers (e.g. with too high toner saturation) or
inkjet printers.
TEC-IT Software allows fine-tuning of the bar width reduction in percent, mm (µm), mils and inch.
As a rule, the quiet zone should be ten times the dimension of the module width or at least 1/4 inch
(6.5 mm); the exact value depends on the barcode symbology.
The print ratio (the bar/width ratio) is the width relationship of all elements of a barcode – with
respect to the smallest element. TEC-IT Software allows fine-tuning of the print ratio by supporting
three parameters:
Print ratio
The read/write property Ratio is used to adjust the print ratio. The value of this property has
to comply with the ratio format.
Format of ratio
The read-only property RatioHint shows the format (syntax) of the print ratio setting. It is
intended as a hint for the programmer or user.
Default print ratio
The read-only property RatioDefault contains the default print ratio for the selected barcode
symbology. It most cases the default ratio is the best choice for printing the barcode.
Example:
Page 14 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The picture above shows a barcode with 4 different bar widths and 4 different space widths.
Because TEC-IT software maintains the print ratio of bars and spaces separately, the ratio format is
composed as follows: 1B:2B:3B:4B:1S:2S:3S:4S.
The first four values (1B:2B:3B:4B) refer to the 4 different widths of the Bars, the second four values
(1S:2S:3S:4S) refer to the 4 different widths of the Spaces. The numbers in the ratio hint (e.g. 1B
stands for the smallest bar, 2B for the bar with the next larger width and so on) are only used to
denote the order – they have no meaning with respect to the ratio itself.
Now set a new print ratio value. This string must be formatted according to the ratio format, but
without the letters: A value of “1:3:5:7.3:1:3:5:7.3” for the Ratio indicates that the width of the widest
bar (4B) is 7.3 times the width of the smallest bar (7.3:1).
4.6 Format
Format acts like a ”mask” for formatting the barcode data prior to encoding it. Placeholders in the
format string can be mixed with constant data characters to build a final data string. With this
feature, it is possible to:
Placeholder Description
character
# Stands for the next data character of the input data (property Text)
& Stands for all remaining data characters in the input data (property Text)
^ Stands for the next check digit (use only if check digits will be computed!)
TBarCode 6 (or earlier) computes the check digit for all characters in the input data.
TBarCode 7 (or later) only uses input data left of the check digit placeholder for check digit
computation (see examples below!).
A Switch to Subset A (used in: Code 128, GS1-128)
Start- or stop character A (only in: CODABAR)
B Switch to Subset B (used in: Code 128, GS1-128)
Start- or stop character B (only in: CODABAR)
C Switch to Subset C (used in: Code 128, GS1-128)
Start- or stop character C (only in: CODABAR)
C Enable compatibility mode for CAPTIVA/IBML document scanning software (used in Data Matrix only)
D Start- or stop character D (only in: CODABAR),
Only for Pharmacode: encode the Pharmacode directly (bar by bar)
Only for Data Matrix: use an alternative error correction algorithm for symbols of size 144x144.
E Translate the Escape Sequences that the input data contains.
J Only for Japanese Postal codes: the Address B data field can be automatically compressed, i.e.
Japanese characters are converted into ASCII characters by a defined rule.
Page 15 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Placeholder Description
character
S Only for MaxiCode: enables setting the values of Date, Preamble, Service Class, Postal- and Country-
Code directly in the barcode data (only in conjunction with escape sequences).
< Adds quiet zone markers at the left (“<”) and/or at the right (“>”) side of the barcode. These markers
are supported by the following barcode types:
>
EAN 8 and add-on variants (both sides)
EAN 13 and add-on variants (only right side)
UPC-A with 2 and 5 digit add-on (only right side)
UPC-E with 2 and 5 digit add-on (only right side)
ISBN (only right side)
Table 4: Format Placeholders
If you want to use non-printable or special characters in a barcode, you have to use escape
sequences. An escape sequence always start with a backslash (‘\’) followed by the sequence itself.
► You have to activate the decoding of escape sequences in the barcode properties – per
default the translation of escape sequences is turned off.
► With activated escape sequences you must use “\\” in the input data to encode a single
backslash „\“ in the barcode.
Page 16 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Page 17 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The method for the check digit(s) calculation depends on the respective barcode type. In order to
make TEC-IT products as user-friendly as possible, a standard method for each barcode type is
supplied (where applicable).
► Per default, the input can take place with and without a check digit. In the latter case, the
check digit is calculated automatically and added to the barcode data.
Example (EAN13): If you enter 12 digits (= utilizable data), the 13th digit (= the checksum
digit) is computed and added automatically. If you enter 13 digits, the check digit is replaced
by your data and is not calculated.
Page 18 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Page 19 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
5.1 Introduction
Some barcode symbologies (e.g. GS1-128) use Application Identifiers (AIs) in order to provide
information about the structure of the encoded data. Application Identifiers are mostly used in
industry-specific barcode symbologies.
An Application Identifier (AI) is a prefix (built from 2 to 4 characters) used to identify the meaning
and the format of the data that follows. AIs have been defined by GS1 (formerly UCC/EAN) for
identification, traceability data, dates, quantity, measurements, locations, and many other types of
information.
The data presented can be alphanumeric or numeric and with fixed or variable data lengths. The
symbology character FNC1 is used as field separator in connection with variable length data fields.
Depending on the barcode symbology, you are able to concatenate multiple AIs and encode more
data fields into one symbol. If an AI is of variable length type, you have to separate the next data
field with FNC1. FNC1 is specified in the barcode data with the escape sequence “\F” (see section
4.7).
► For encoding the FNC1, you have to activate Translate Escape Sequences.
► Do not encode the brackets, which are usually used to denote an Application Identifier. TEC-
IT software generates the brackets automatically for the human readable text. The brackets
are not encoded in the barcode itself.
For more information (e.g. a list of all available AIs), please follow the links below:
https://www.gs1.org/barcodes/technical/genspecs
https://www.gs1.org/productssolutions/barcodes/technical/genspecs/index.html
https://en.wikipedia.org/wiki/GS1-128
https://www.tec-it.com/support/links/barcode.aspx
5.2 Examples
5.2.1 Batch Number
A batch number is encoded with AI 10. The format of AI 10 is “n2 + an..20”. This means the AI has
two digits (10) followed by variable length data with maximum 20 characters.
Description Value
Data (Text property) 10 + Production Number = 1012345678
Human readable text (10)12345678
Encoded data 1012345678
Two data fields should be encoded in one barcode. Following fields are used:
Page 20 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Description Value
Item number AI (01) – format n2 + n14
Batch number AI (10) – format n2 + an1...20
Data (Text property) 01+Global Trade Item Number+10+Batch Number = 01123456789012311012345678
Human readable text (01)12345678901231(10)12345678
Encoded data 01123456789012311012345678
Description Value
Batch number AI (10) – format n2 + an1...20
Serial number AI (21) – format n2 + an1...20
Data (Text property) 10+Batch Number+\F+21+Serial Number = 10L12345678\F21S12345
Human readable text (10)L12345678(21)S12345
Encoded data 10L12345678FNC121S12345
► The field separator FNC1 (encoded by the sequence „\F“) has to be used because the batch
number (AI 10) is a variable length data field.
Sometimes it is required to calculate a check digit only for a partial content of a barcode. A good
example is the AI 01 (GTIN) in combination with other data fields within a GS1-128 symbol.
Description Value
AI for GTIN 01
AI for Date 11
GTIN without check digit 1234567890123
Production Date 060606
In our example, the GTIN contains no check digit (e.g. when created based on the EAN-13
number). The check digit has to be generated only for the first 13 digits of the supplied data and not
for the full data content.
Since TBarCode Version 7+, you can use the format property to solve this problem:
Description Value
Format property: 01#############^11######
Data (Text property): 1234567890123060606
Check Digit Method: EAN-14 (Mod-10)
Calculated Check Digit: CD = Mod-10 of (1234567890123) = 1
Result: 01 + 1234567890123 + CD + 11 + 060606
Encoded data: 011234567890123111060606
The mentioned symbologies use an internal data compression algorithm for specific Application
Identifiers. Compression means that the barcode can encode more data or can be made smaller.
This optimization takes effect if the AIs are applied in the following predefined order.
Page 21 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
If the date is not required, this order of AIs still leads to a better barcode representation.
5.3.2.2 AI (01)
► If AI(01) is needed in the barcode, please ensure it is the first AI encoded (for optimal data
representation).
The GS1 (EAN.UCC) Composite Symbology was designed to hold primary data (like the GTIN or
Shipping Container Code) in the linear symbol and additional data in the 2D Composite Component.
For specific AI combinations in the 2D add-on symbol, it is possible to perform a data compression
(as shown below). This leads to a higher data density (= smaller barcode or more encode able
characters).
Page 22 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Combinations Description
AI (11) + AI (10) Date and Lot-Number
AI (17) + AI (10) Expiration Date und Lot-Number
Table 11: AIs in Composite Codes
5.4.2 AI (90)
AI (90) and the following data (which starts with an upper-case letter or a digit) may be used for
encoding of FACT IDs. Compression takes place only if AI(90) is the first data element of the
sequence.
Page 23 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6 Barcode Symbologies
This chapter describes all supported barcode types. For each barcode, the following values are
specified:
Symbology Number
This number is used in some TEC-IT products to specify the barcode symbology.
Developers are usually specifying the barcode type via an enumeration, which is
documented in the respective developer documentation.
Valid characters
Lists the available characters or character sets which can be encoded with the symbology.
Quiet zone
This is the recommended quiet zone for the barcode symbology in question. Please note
that the quiet zone often depends on your individual application.
Module width
The recommended minimal module width of the barcode. This value may be adapted to your
special requirements.
Standard print ratio
This setting describes the print ratio used by TEC-IT software if no custom ratios are
adjusted. For most applications, you can use this default value.
Ratio format
This value serves as a hint for specifying user defined print ratios.
Default check digit
Describes, which check digit method is used by default for the barcode symbology in
question. For 2D codes check digits are not applicable, these codes are using an error
correction scheme.
Possible check digits
Provides information whether additional or user defined check digits methods may be
adjusted
Size
Describes the requirements with respect to the symbol size (if available)
Print control1
Control character sequence used by TBarCode/SAPwin (Barcode DLL for SAP®).
The Bookland barcode encodes the ISBN number in EAN-13 format followed by a 5-digit
supplemental code. The barcode data always consists of the digits ‘978’ (the EAN article identifier),
followed by a 9-digit number and one check digit. You can use the EAN-13 with 5-digits add-on for
encoding. The 5-digit add-on barcode is used to encode the book price. For more information, refer
to section 6.1.39
1
Listed for the most common bar code types. See user manual for the complete list of print controls.
Page 24 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This code was invented 1972 by Monarch Marking Systems for retail purposes. In 1977 the
American Blood Commission defined Codabar 2 as standard symbology for blood banks (=ABC
Codabar).
The characters “A”, “B”, “C”, and “D” are useable as start or stop characters only. The barcode uses
2 element-widths and 4 different start/stop-characters (A, B, C, and D). These start/stop characters
can be utilized for additional information – e.g. "B1234B". The print ratio should be in the following
range: 1:2 -1:3 (Pr >= 2.25:1). Since the symbology is “self-checking”, there is no established check
sum method.
The symbology is also known as Code 2 of 7, NW-7, ABC Codabar, USD-4, Monarch, Code-27,
Ames code, or Rationalized Codabar.
The “rationalized version” uses 2 different element widths in spite of the original symbology, which
used 18 different element widths (Standard Codabar).
► Use the format property to determine the Start and Stop characters (see section 9.3).
► FedEx is using a special variant of the Codabar barcode. The format of the encoded number
is as follows: XXXX-XXXX-XXXY with a 4-digit ID at the end. The first 12 digits contain the
tracking number. The barcode starts with „C“ (start-character) and ends with „D“ (stop-
character).
6.1.3 Code 11
Symbology number: 1
Valid characters: “0”..”9”, “-“
Quiet zone: left/right: 10X
Module width: X= 0.191 mm
Standard print ratio: 1:2.24:3.48:1:2.24
Ratio format: 1B:2B:3B:1S:2S
Default check digit: None (eCDNone)
Possible check digits: 1 check digit (eCD1Code11) – or
2 check digits (eCD2Code11)
Symbol size: --
This symbology is mainly used in telecommunications for marking equipment and components. It
was invented in 1977 by INTERMEC. It is similar to Code 2 of 5 Matrix. The symbology is not self-
checking therefore two check digits are recommended. Code 11 is a high-density code, but requires
also a high-density output device (mainly because of the print ratio utilized).
Page 25 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Code 128 is heavily used in all areas. It is a modern high-density symbology and was invented 1981
by Computer Identics.
TEC-IT software analyzes input data and chooses the best suitable barcode representation with the
highest data density. This is done by so-called “subset switching”. 3 different internal characters
(=subsets) sets are used:
Code128 uses a built-in check digit (Modulo 103). This check digit is part of the code and cannot be
omitted. It is never printed in the human readable text. Scanners are checking it when reading a
code but do not deliver the check digit to connected systems.
In conjunction with the symbology character "FNC1“, this code is also known as GS1-128 barcode –
see section 6.1.24.
This is a variant of Code128, which uses character set (subset) A. It is suitable for encoding upper
case characters + ASCII control sequences. It switches to other Code128 subsets when required.
Page 26 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This is a variant of Code128, which uses character set (subset) B. It is suitable for encoding lower &
upper case letters. It switches to other Code128 subsets when required.
This is a variant of Code128, which uses character set (subset) C. It is suitable for encoding digits.
It switches to other Code128 subsets when required.
This is a self-checking code. It is used for industrial applications, article numbering, photo
development, ticketing.
Page 27 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
It is used for baggage handling in air-transport applications (International Air Transport Agency =
IATA).
Page 28 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This self-checking code offers high data capacity due to encoding pairs of numbers (the first digit is
encoded in the bars, the second in the spaces). Thus, this symbology can encode only an even
number of digits. If the number of digits is odd, a leading zero will be inserted automatically.
6.1.13 Code 2 of 7
This symbology is identical with Codabar 2 Widths and is known as NW-7 or USD-4. See section
6.1.2
6.1.14 Code 25
Uniform Symbology Specification ITF 2-5. Identical to Code 2 of 5 Interleaved. Another alias is USS
ITF 2-5.
Page 29 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Code 39 is in heavy use in industry, organizations and commerce. It was developed 1974 by
INTERMEC and were standardized by ANSI MH 10.8 M-1983 and MIL-STD-1189.
► The start- and stop characters “*” (asterisk) are created automatically and must not be
included in the input data. They are not displayed in the human readable text.
Code 39 is a self-checking code. Code concatenation is possible (if the first encoded character is a
space, the scanner concatenates subsequent barcodes). Distance reading is possible (> 1m).
6.1.16 Code 32
Symbology number: 93
Valid characters: “0” - “9”
Quiet zone: left/right: 10X, min. ¼ inch
Module width: 0,25 <= X <= 0.254 mm
Standard print ratio: 1:2.5:1:2.5
Ratio format: 1B:2B:1S:2S
Default check digit: Module 10 Luhn Reversed
(eCDMod10LuhnRev) A012345676
Possible check digits: Module 10 Luhn Reversed
(eCDMod10LuhnRev)
Symbol size: --
It is used by the Italian Pharma Industry. The code is also called Italian Pharmacode.
Page 30 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Code 39 Extended is rarely used because Code 128 offers much better compression. Code 39
Extended uses the same symbology as Code 39 but encodes also lower-case letters and special
characters („+A“ results in a lower case „a“ when scanned). Scanner must be configured correctly
for decoding Code39 Extended.
► The start- and stop characters “*” (asterisk) are created automatically and must not be
included in the input data. They are not displayed in the human readable text.
6.1.18 Code 93
Symbology number: 25
Valid characters: “0”..”9”, “A”..”Z”, “-“, “.”, Space, “$”, “/”, “+”,
“%”
Quiet zone: left/right: 10X, min. ¼ inch
Module width: X >= 0.19 mm
Standard print ratio: 1:2:3:4:1:2:3:4
Ratio format: 1B:2B:3B:4B:1S:2S:3S:4S
ABC123-/+
Default check digit: Automatic (symbology specific).
Modulo 47 (eCD2Mod47)
Symbol size: --
Print control: C=93
Code 93 was invented 1982 by INTERMEC to achieve better information densities (compared to
Code 39). Code concatenation is possible (if the first encoded character is a space, the scanner
concatenates subsequent barcodes).
Based upon Code 93 but encodes the complete ASCII character set. One of the four available
control characters is used to shift into the ASCII-character table.
Page 31 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
DAFT Code is no symbology. It is a technique to generate arbitrary postal codes (like for instance
the Australian Postal Codes or the Royal Mail 4 State code).
Each input character stands for a specific bar type and there are 4 different bar types:
DOD LOGMARS stands for Department of Defense LOGMARS. Same as LOGMARS (see section
6.1.46).
6.1.22 DUN-14
The DUN-14 (Distribution Unit Number) is not a barcode type. It is a numbering system for shipping
containers. The DUN-14 uses the ITF-14 or the EAN-14 barcode symbols. Modern installations
always use the EAN-14 (EAN-128) to encode the DUN-14.
The first digit represents the number of units in the container: 1=6 units, 2=10 units, 3=12
units, 4=20 units, 5=24 units. (The digits 6, 7, and 8 are standing for other numbers of units.)
The next 12 digits are representing the product number. In general, this is the EAN-13
number without check digit.
The last digit is the check digit.
6.1.23 DUNS
This is not a barcode standard. DUNS is a nine-digit number assigned and maintained by Dun and
Bradstreet to identify unique business establishments. DUNS numbers are assigned worldwide and
include US, Canadian, and international organizations.
The EAN-128 code was renamed to GS1-128. It is the same as the UCC-128 and sometimes
referenced as UCC/EAN-128 in this document.
Page 32 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Symbology number: 16
Valid characters: ASCII-characters between 0..127
(maximum: 48 characters)
Quiet zone: left/right: 10X, min. ¼ in
Module width: see Code128
Standard print ratio: see Code128
Ratio format: see Code128
Default check digit: Automatic (symbology specific).
Modulo 103 (eCDEAN128)
Possible check digits: Modulo 10, EAN-14
Symbol size: the maximum physical width is 165 mm
Print control: C=G128 / C=E128
The GS1-128 code is based upon Code-128. It has an FNC1 character at the 1st position (after the
start code). This allows scanners and data processing software to differentiate GS1-128 from other
symbologies.
The GS1-128 code is in wide spread use (retail, logistics, food and beverage, etc.). It is used for
marking transport-units in supply chains. Besides the article-number, it encodes quantities, weights,
prices, dates, and other information in a structured way. This is supported by the use of so-called
Application Identifiers (AIs) – see chapter 5. Within the GS1 system, these Application Identifiers
(AIs) prefix the encoded data.
► Please note: The TEC-IT barcode software automatically inserts the FNC1 character at the
beginning and computes the internal check digit (Modulo 103).
6.1.25 EAN-13
Symbology number: 13
Valid characters: “0”..”9”, 12 digits + 1 check digit
Quiet zone: left: 11X, right: 7X
Module width: X=0.33mm
Standard print ratio: 1:2:3:4:1:2:3:4
Ratio format: 1B:2B:3B:4B:1S:2S:3S:4S
Default check digit: EAN-13 (eCDEAN13)
Possible check digits: User supplied
Symbol size: Standardized symbol sizes (see EAN).
Print control: C=E13
This code is reserved for the International Article Number2 administered by the standards
organization GS1. The numbers encoded into EAN bar codes are known as Global Trade Item
Numbers, for EAN-13, they are called GTIN-13.
EAN 13 is used for identifying articles or products uniquely (often sold at retail point of sale).
Encoded are a 2-digit country code, 5-digits manufacturer code and a 5-digits products code. JAN
and IAN are identical to EAN-13.
The check digit is calculated automatically if it not specified in the input data (that is when only 12
digits are used for creating the code).
2
Formerly European Article Number (EAN)
Page 33 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This symbology extends EAN-13 with two add-on digits (see also EAN-8 with 2 Digits Add-On). The
check digit will be calculated automatically if not specified in the input data (e.g.
978020137968612).
This symbology extends EAN-13 with five add-on digits (see also EAN-8 with 5 Digits Add-On). The
check digit will be calculated automatically if not specified in the input data (e.g.
978020137968612345).
6.1.28 EAN-14
Symbology number: 72
Valid characters: ASCII-characters between 0..127,
13 digits + 1 check digit
Quiet zone: see GS1-128, ITF-14
Module width: see GS1-128, ITF-14
Standard print ratio: see GS1-128, ITF-14
Ratio format: see GS1-128, ITF-14
Default check digit: EAN-14 (eCDEAN14)
Possible check digits: User supplied
Symbol size: see GS1-128, ITF-14
EAN-14 is used to encode the GTIN (Global Trade Item Number) for numbering trade items. Within
the GS1 system, you can use 2 symbologies for encoding the GTIN:
GS1-128 (UCC/EAN-128)
ITF-14.
EAN-14 uses GS1-128 with Application identifier (AI) 01. The AI is prefixed automatically; it must
not be part of the input data. The check digit is calculated automatically if not specified in the input
data (that is when only 13 digits are used).
6.1.29 EAN-18
Page 34 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.1.30 EAN-8
Symbology number: 10
Valid characters: “0”..”9”, 7 digits + 1 check digit
Quiet zone: left/right: 7X
Module width: X=0.33mm
Standard print ratio: 1:2:3:4:1:2:3:4
Ratio format: 1B:2B:3B:4B:1S:2S:3S:4S
Default check digit: EAN-8 (eCDEAN8)
Possible check digits: User supplied
Symbol size: Standardized symbol sizes. See EAN.
Print control: C=E8
This symbology is derived from the longer EAN-13 bar code and encodes the GTIN-8, which is
another set of product identifiers from the GS1 system.
EAN 8 is used for marking small articles with restricted space. It encodes a unique article number,
which consists of a GS1 prefix, an item reference (no company prefix) and a checksum digit.
The check digit is calculated automatically if not specified in the input data (that is when only seven
digits are used for creating the code).
This symbology extends EAN-8 with two add-on digits which are mainly used for encoding the price
or the weight. The check digit will be calculated automatically if it not specified in the input data (e.g.
9031101712).
This symbology is also used for bar-coding paperbacks or newspapers. In this case, a 2(3) digits
country code and a 4(5) article code are encoded.
This symbology extends EAN-8 with five add-on digits which are mainly used for encoding the price
or the weight. The check digit will be calculated automatically if it not specified in the input data (e.g.
072527272077).
Page 35 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.1.34 Flattermarken
Symbology number: 28
Valid characters: “0”..”9”
Quiet zone: Application dependent
Module width: 2-3 mm
Standard print ratio: 1:1
Ratio format: 1B:1S
Default check digit: None (eCDNone)
Symbol size: Symbol height between 5 and 10mm
Print control: C=FLM
This is a special “barcode” used for recognizing the correct sequence of pages in print shops.
6.1.35 GS1-128
The GS1-128 is simply another name for the existing EAN-128 (or UCC-128) barcode. The EAN
and UCC standardization organizations founded GS1 in order to globalize (and harmonize) their
different standards. See section 6.1.24.
6.1.36 GTIN
GTIN stands for Global Trade Item Number and is not a barcode symbology.
A GTIN is used for the unique identification of trade items worldwide within the GS1 (EAN.UCC)
system. The GTIN may be encoded in UPC-A, EAN-8, EAN-13, EAN-14, ITF-14, and GS1-128
symbologies.
Depending on the number of digits available in the bar code, the GTIN is divided into GTIN-8, GTIN-
12, GTIN-13 and GTIN-14.
Page 36 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.1.37 HIBC
HIBC is an abbreviation for Health Industry Bar Code. The HIBC is a numbering system – and not a
specific barcode symbology. It is used for product identification codes as well as for worldwide
identification of shipping units.
The primary code contains the manufacturer id, the article number, the package number and a
check digit. The secondary code contains the serial number, the expiration date and the units per
package.
The following symbologies are commonly used for encoding: Code 39, Code 128, Codablock F. For
more information, please refer to section 6.4 and to https://www.hibcc.org.
6.1.38 I-2/5
Short for Code 2 of 5 Interleaved (see section 6.1.12). It is also known as Code 25.
ISBN is the abbreviation of International Standard Book Number. It uses the symbology EAN-13
and can be optionally extended with 5 Add-On Digits. The add-on is used for additional pricing
information. For more information, please refer to https://www.isbn.org.
The EAN-13 barcode for a book is generated from the ISBN number assigned to it. When encoding
ISBN in an EAN-13 barcode, the ISBN number is preceded by the number 978 and the ISBN check
digit is not used (the rightmost digit of the ISBN). When the ISBN number is encoded in the EAN-13
barcode in this way, it is often called Bookland. A 5-digit add-on barcode is optional and can contain
the price of the book.
► ISBN codes with 10 digits are automatically converted to the newer ISBN with 13 digits!
6.1.39.1 Example
You got the ISBN Number 1-56592-843-1 and a value for the second small barcode (as for the
price) of 90000.
Therefore choose the symbology EAN 13 + 5 Digits encode the following data:
97815659284390000. The check digit is calculated automatically (5).
The smaller barcode, which is on the right side of the ISBN code, is a 5-digit additional code and
can be used for additional information (e.g. like pricing).
Example:
Page 37 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Price Encoded
$10.95 51095
$3.00 50300
$99.99 + 59999
Table 12: ISBN Sample
The preceding digit ”5” (therefore also called EAN-5) marks the price encoded in US Dollar.
Bookstores recommend EAN-5. If there is no price, the value 90000 will be encoded instead (EAN-
9). This value is used when no additional information is available.
► For scanner in US bookstores ISBN, EAN codes are not readable without the 5-digit add-on
(which is called EAN-5 or EAN-9, depending on the first number encoded in the add-on).
Values Description
59999 Price for $100 and more
90000-98999 For internal purposes (BISG recommend 90000 if no price is given)
99000-99999 Reserved for the industry market
99990-99999 Reserved for Nat’l Ass’n College Stores (NACS)
99990 NACS used books
99991 NACS copies
Table 14: ISBN Encoding – Price Samples
6.1.40 ISBT-128
This is the International Standard for the transfer of information associated with tissue transplan-
tation and Blood Transfusion. It provides a globally unique donation numbering system, inter-
nationally standardized product definitions, and standard data structures for bar-coding and
electronic data interchange.
It uses (but is not limited to) Code128B. For more information, please refer to https://iccbba.org.
6.1.41 ISMN
Symbology number: 24
Valid characters: “0”..”9”, 12 digits + 1 check digit
Quiet zone: See EAN13
Module width: See EAN13
Standard print ratio: See EAN13
Ratio format: See EAN13
Default check digit: EAN-13 (eCDEAN13) 9 790123 456785
Possible check digits: User supplied
Symbol size: See EAN13
ISMN stands for International Standard Music Number. The ISMN is a standardized international
code, which identifies printed music.
Page 38 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The digits 9790 precede the ISMN. The ISMN (=EAN-13) check digit is calculated and appended
automatically!
6.1.42 ISSN
Symbology number: 26 (without add-on) or 27 (with add-on)
Valid characters: “0”..”9”, 12 digits + 1 check digit +
optionally 2 add-on digits
Quiet zone: See EAN13 / EAN13 + 2 Digits
Module width: See EAN13 / EAN13 + 2 Digits
Standard print ratio: See EAN13 / EAN13 + 2 Digits
Ratio format: See EAN13 / EAN13 + 2 Digits
9 771234 567898
Default check digit: EAN-13 (eCDEAN13)
Possible check digits: User supplied
Symbol size: See EAN13 / EAN13 + 2 Digits
ISSN stands for International Standard Serial Number. The ISSN is a standardized international
code, which identifies any serial publication independently of its country of origin, its language or
alphabet, or its frequency, medium, etc.
The digits 977 precede the ISSN. The check digit of an 8-digit ISSN code (the last of the 8 digits)
must be omitted! A two-digit price code, usually "00", is added to the end. Finally, the EAN-13 check
digit (calculated automatically by TEC-IT software) is added.
6.1.43 ITF-14
Symbology number: 89
Valid characters: 13 digits + 1 check digit
Quiet zone: left/right: 10X
Module width: 0.051 – 1.02 mm (nominal size)
Standard print ratio: 1:2.5:1:2.5
Ratio format: 1B:2B:1S:2S
Default check digit: Mod-10 (eCDMod10)
Symbol size: 152.43 x 41.60 mm at nominal size
(including Quiet Zone and Bearer Bars)
Print control: C=I14
ITF-14 encodes the GTIN-14, this is a 14-digit number used to identify trade items at various
packaging levels (also referred as GTIN).
ITF-14 bases on the Code 2 of 5 Interleaved symbology. It encodes 14 digits (13 usable digits + 1
modulo 10 check digit). The check digit method complies with the EAN-14 method.
ITF-14 uses “Bearer Bars”, these are horizontal or surrounding bars, to prevent misreads.
► Symbol size and Bearer Bars are depending on printing method and scanning environment
– for details please follow the GS1 specification.
► When using vertical Bearer Bars, they must have at least a distance of 10 modules to the
bar code. This is why you have to adjust a minimum of 12 modules for the quiet zone to see
a vertical Bearer Bar in TEC-IT Software.
Page 39 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.1.44 JAN
JAN is the abbreviation for Japanese Article Number. This code uses EAN-13 symbology. The first
two digits have to be either 45 or 49 for identifying Japan.
6.1.45 LAETUS-Code
6.1.46 LOGMARS
Symbology number: 50
Valid characters: “0”..”9”, “A”..”Z”, “+“, “-”, “*”, “/”, ”.”, ”$”,
Space
Quiet zone: left/right: 10X, min. ¼ inch
Module width: X>=0.19 mm
Standard print ratio: 1:3:1:3
Ratio format: 1B:2B:1S:2S
Default check digit: None (eCDNone)
Possible check digits: Modulo 43 (eCDMod43), Modulo 11 AB12$+
Weight 7 (eCDMod11W7)
Symbol size: H>=15% of L (H>=6.3 mm!)
H: Height of barcode symbol without
human readable text
L: Width of barcode
This is a special variant of Code 39 used by the U.S. Department of Defense. This standard defines
acceptable ranges for a number of variables, include density, ratio, bar height, and size of the
human-readable interpretation line. The modulo-43 check digit, which is optional for Code 39, is de-
fined and recommended in the specification.
6.1.47 MSI
Symbology number: 47
Valid characters: “0”..”9”
Quiet zone: left/right: 12X
Module width: --
Standard print ratio: 1:2:1:2
Ratio format: 1B:2B:1S:2S
Default check Digit: MSI 1 digit (eCDMSI1) 012345674
Possible check digits: User supplied and MSI 2 digit (eCDMSI2)
Symbol size: 14 digits incl. check digits
Print control: C=MSI
The MSI-Code is a variant of the Plessey-Code. MSI uses various check digit calculation methods -
TEC-IT implemented the two most common used. Please contact TEC-IT if you need a different
one.
Page 40 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The content of the NTIN Code is specified by GS1. It was developed in order to get unique
pharmaceutical product codes on an international level. It embeds the already existing national
coding systems, like PZN in Germany.
The NTIN Code bases on the Data Matrix symbology with GS1 format. It splits into following fields
(with AI(xx) as the GS1 Application Identifier number):
The <FNC1> character separates the fields if needed. Each field is prefixed with the according GS1
Application Identifier.
NVE stands for “Nummer der Versandeinheit” (a German term for tracking number). This code uses
an EAN-128 symbology with a prefixed Application Identifier (AI) 00. The AI “00” is inserted automa-
tically and must not be included in the input data. It is similar to SSCC-18.
6.1.50 NW-7
Page 41 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The Japanese version of the Codabar 2 Widths barcode is called NW7. Another name for this
symbology is Code 2 of 7 – see section 6.1.2
LAETUS® invented this code. It is used in pharmaceutical areas. Pharmacode supports colored
bars. The data for the bars/spaces is encoded directly in the property Text:
“0” is used for a narrow bar (the width of these bars are enlarged after a color change,
according to ratio 1C)
“1” is used for a wide bar (the width of these bars are enlarged after a color change,
according to ratio 2C)
“b” is used for a narrow bar
“c” is used for a wide bar
When using colored bars, the color is specified by the escape sequence \Crrggbb (where rrggbb is
an RGB value; each letter stands for a hexadecimal digit (0-f); rr stands for the red, gg for the
green, and bb for the blue value part). The sequence \Cx resets the color to default. The barcode
Format must be set to D and EscapeSequences must be activated.
The data for the barcode in the example above is as follows (the color escape sequence is not
displayed in the human readable text): 111\C2a3282111.
This code was invented and specified by LAETUS®. Pharmacode assigns numeric values to the
bars. It is used for medicine packing in pharmaceutically area; for small labels. Usually Pharmacode
is printed without a human readable text.
It offers a high printing tolerance and is readable very fast (200 readings per second).
Page 42 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The content of the Pharmacy Product Number Code is specified by the IFA. It was developed in
order to get unique pharmaceutical product codes on an international level. It embeds the already
existing national coding systems, like PZN in Germany.
The PPN Code bases on the Data Matrix symbology with format Macro 06. It splits into following
fields:
The group separator character <GS> (ASCII 29) separates the fields. Each field is prefixed with a
unique field ID.
Page 43 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
PZN uses Code 39 as the base symbology. It uses a special check digit and the human readable
text always contains the prefix “PZN-“, which is not encoded in the barcode data.
PZN7 is valid until the end of 2012 and will be replaced by PZN8 with the beginning of year 2013.
PZN7 numbers will stay valid but are going to be extended to eight digits by a leading “0”.
Plessey code is in use primarily in libraries. It is a pulse-width modulated code and was developed
by Plessey Company Limited in UK. The basic encoding principle in Plessey Code was used by
MSE Data Corporation to construct its MSI barcode.
The check digit is calculated with a polynomial CRC algorithm and is always part of the symbology.
6.1.57 SCC-14
Page 44 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.1.58 SSCC-18
Symbology number: 48
Valid characters: “0”..”9”, 17 digits + 1 check digit
Quiet zone: see EAN 128, sometimes ¼ inch
Module width: see EAN 128
Standard print ratio: 1:2:3:4:1:2:3:4
Ratio format: 1B:2B:3B:4B:1S:2S:3S:4S
Default check digit: Automatic (symbology specific). (00)012345678901234560
Modulo 10 (eCDMod10) and Modulo 103
(eCDEAN128)
Symbol size: see GS1-128
Print control: C=SSCC18
SSCC-18 is used for encoding the Serial Shipping Container Code. It is used for the unique
identification of trade items worldwide. SSCC-18 bases on the GS1-128 symbology with Application
Identifier (AI) 00. The check digit is encoded automatically if 17 digits are used for the input data.
The first two digits represent the Application Identifier (AI). The AI is always ‘00’.
The next digit is the Packaging Identifier.
The Packaging Identifier is followed by the ILN (the International Location Number) of the
manufacturer (7 digits).
The next 9 digits represent the Carton Serial Number.
The last digit is the check digit.
6.1.60 Telepen
Symbology number: 87
Valid characters: pairs of digits, pairs of one digit with an
‘X’
Quiet zone: n/a
Standard print ratio: 1:3:1:3
Ratio format: 1B:2B:1S:2S 0123456X
Default check digit: None (eCDNone)
Symbol size: --
Telepen can encode pairs of characters only. A pair must consist of 2 digits or of one digit and the
letter ‘X’.
6.1.61 UCC-128
Page 45 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
UPC A is used in the United States for marking of products in retail applications (similar to EAN).
The numbers encoded into UPC bar codes are known as Global Trade Item Numbers, for UPC-A
they are called GTIN-12.
UPC-A is mainly used for scanning of trade items at the point of sale. The article number is
maintained by GS1 US and identifies manufacturer and product uniquely.
The code (11 digits + 1 check digit) is built from one system-digit, five digits manufacturer code and
five digits product code. The check digit is calculated automatically if not specified in the input data
(that is when only 11 digits are used for the code).
It is identical to UPC-A, but with 2 add-on digits. The check digit will be calculated automatically if it
is not specified in the input data (e.g. 72527272070712). The check digit is not displayed in the
human readable text.
Page 46 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
It is identical to UPC-A, but with two add-on digits. The check digit will be calculated automatically if
it is not specified in the input data (e.g. 72527272070712345). The check digit is not displayed in
the human readable text.
UPC-E is used for product marking and article bar coding. The code must begin with “0” or “1”. The
check digit is computed automatically if it is not specified in the input data (that is when only seven
digits are used for creating the code).
This code is identical to UPC Version E, but with two add-on digits. The check digit will be
calculated automatically if not specified in the input data (e.g. 0123456512). The check digit is not
displayed in the human readable text.
Page 47 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This code is identical to UPC Version E, but with two add-on digits. The check digit will be
calculated automatically if not specified in the input data (e.g. 0123456512345). The check digit is
not displayed in the human readable text.
UPC SCS stands for Shipping Container Symbol. ITF-14 is based on Code 2 of 5 interleaved as
barcode symbology, but is rendered with bearer bars.
The UPC Shipping Container Symbol (SCS) is very similar in structure to the Universal Product
Code (UPC). Both employ a unique GS1/UCC company prefix (assigned by GS1) and a 1 to 5-digit
item number (assigned by the manufacturer, depending on the number of digits in the company-
prefix). Each employs a check digit at the end of the code.
The SCS also has a packaging indicator field preceding the UCC company prefix. Its symbology is
called Interleaved 2 of 5 (I-2/5) and uses a series of wide and narrow bands and spaces to
represent digits and is surrounded on two or four sides by a frame called a bearer.
The packaging indicator (historically called an assortment indicator) can be any single digit (except
8, which is reserved for future use):
Page 48 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Packaging Description
Indicator
0 Is always used when the UPC code on the case and on the individual items inside the case are
different or when both a UPC Version A symbol and a UPC Shipping Container Symbol (I-2/5) must
appear on the same carton (for products where the shipping container also acts as the package for
the consumer product).
1 Is used traditionally when the UPC code on the case and on the individual items inside the case
are the same.
1-7 Can be used to signify a range of packaging levels
8 Reserved for future use
9 Is used only to signify a variable content shipment. The 9 indicates to the scanner that a mandatory
variable content add-on symbol follows the primary symbol.
Table 15: Shipping Container Symbol Packaging Indicator
6.1.70 USD-4
This symbology is identical with Codabar 2 Widths and is known as Code 2 of 7 and as NW-7.
Uniform Symbology Specification ITF 2-5. Identical to Code 2 of 5 Interleaved. Another alias is
Code 25.
USS Code 128 stands for Uniform Symbology Specification Code 128. It is identical to Code 128.
USS Code 39 stands for Uniform Symbology Specification Code 39. It is identical to Code 39.
VIN Code is used for vehicle identification. It bases on Code 39, but does not contain start and stop
characters. The set of valid characters consists of digits and upper case letters. The letters “I”, “O”,
and “Q” are not allowed because they could be easily mixed up with the digits “0”, and “1”.
VIN Code is implemented differently in Europe and North America. Both kinds are compatible but
the North American version is defined more strictly. Therefore, the check digit calculation method is
only valid for the North American implementation of the code.
Page 49 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The Australian Post for marking shipments uses this barcode. Special code variants are available
for redirections, replies and so on. The barcode height is between 4.2mm and 5.8mm. The module
width should be adjusted to 0.47 mms. Usual no readable text is displayed. The length will depend
on the use of additional bars (code variants Customer 2 and Customer 3).
Due to its number of bars (37) Australian Post Customer is also called Australia Post 37-CUST.
This is the same barcode as the Australian Post Standard Customer, but with additional five
characters for customer specific data. The first eight characters must be digits. This symbology is
also called Australia Post 52-CUST (Due to its 52 bars).
This is the same barcode as the Australian Post Standard Customer, but with additional 10
characters for customer specific data. The first 8 characters must be digits. This symbology is also
called Australia Post 67-CUST (Due to its 67 bars).
Page 50 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This code is used by the Brazilian Postal Services. An 8 digit ZIP-code is encoded. The check digit
is calculated automatically. It cannot be specified in the input data.
The barcode height should be adjusted to 3.2 mms; the module width to 0.423 mms; usually no
plain text is displayed. The encoding is based on US Postal codes.
Page 51 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Deutsche Post uses this symbology. The code is a Code 2 of 5 interleaved enhanced with a special
check digit calculation.
Deutsche Post uses this symbology. The code is a Code 2 of 5 Interleaved enhanced with a special
check digit calculation. It is used for encoding the ZIP-Code, Street and number of the shipment.
DPD Code is used by DPD (Deutscher Paket Dienst). It bases on Code 128 and is limited to 28
encoded characters. The encoded data and the human readable text differ slightly.
With:
Page 52 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Italian Postal Code 2 of 5 is based upon Code 2 of 5 Interleaved, but it is limited to 12 digits (11
usable digits + 1 modulo 10 check digit).
This code is used by the Japanese Postal system. You can encode 7 digits followed by block and
street number (uppercase alphanumeric). The special compaction mode of Japanese characters
can be enabled on demand– see below.
Format parameter “J” triggers data extraction from the Japanese Address B field.
Description Value
Format Property ”J” (= Enable Japanese Compaction)
Postal code 273-0102 (can contain ‘-‘)
Address B
Barcode text Postal code + Address B
Barcode text 273-0102
Page 53 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
To draw the barcode according to the specification please follow these steps:
This code is used by the Korean Postal system. Encoded are a 6-digit ZIP and one check digit.
6.2.14.1 Example
Description Value
Post number 305-600
Barcode Text property 305600 (no hyphen, 6 digits)
Encoded data in the symbol 0065036
The check digit (7th digit marked red) is calculated automatically.
.
3
Shift JIS will be the default code page for Japanese Postal in TBarCode SDK 10.2.6 and later.
Page 54 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
► Hint: Is scanned from right to left, so the data is encoded in the reverse order. The check
digit is added at the right side, so it is the first digit read by a scanner.
This code was developed for the United States Postal Services. It is a 3-of-5 variant of the
POSTNET barcode. It was fully superseded by Intelligent Mail® Barcode (6.2.25) by January 28,
2013.
This code was developed for the United States Postal Services. It is a 3-of-5 variant of the
POSTNET barcode. It was fully superseded by Intelligent Mail® Barcode (6.2.25) by January 28,
2013.
This code is a height-modulated code using 4 different vertical bars. It is used in mass-mailing
applications (Cleanmail, Mailsort) of the Royal Mail, United Kingdom and Singapore (called SinPost
barcode). Encoded are ZIPs.
6.2.18 Royal Mail Complex Mail Data Mark (CMDM) Mailmark® Barcode
Royal Mail CMDM Mailmark is just an old name of the Royal Mail Mailmark 2D barcode.
Page 55 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The Mailmark 2D is based upon Data Matrix ECC200 (ISO/IEC 16022, version 2006) and is used
by the Royal Mail for postal services. In addition, the Mailmark™ 2D barcode uses a specific format
and data structure defined by the Royal Mail for their purposes.
Format 7 (24 x 24 modules), total capacity 51 characters, 6 characters for customer use.
Format 9 (32 x 32 modules), total capacity 90 characters, 45 characters for customer use.
Format 29 (16 x 48 modules), total capacity 70 characters, 25 characters for customer use.
The Mailmark™ 2D barcode is differentiated from other Data Matrix symbols by the first 6
characters of the data within the barcode:
Each field within any CMDM is of a fixed and defined length. The length in total (except customer
part) is 45 characters. Missing or optional attributes must be filled with the SPACE character.
► For more information, we refer to the Royal Mail Mailmark® barcode definition document.
Sample data content (Format 9, 45 characters Mailmark™ data + 41 characters customer data):
JGB 010100000700009001B707RH1A 0SN35XX ABCDEFGHIJ1234567890ABCDEFGHIJ1234567890A
Each format has a reserved space for customers and/or mailing houses to place information. The
amount of space depends on the barcode type and characters/encoding used.
6.2.19.3 Encoding
All data within the Royal Mail defined portion of the code shall comply with the C40 character set
(upper case alphanumeric, numeric and SPACE characters) and C40 encoding scheme of Data
Matrix. The customer content field does not need to comply with this encoding.
► TBarCode uses the proper encoding if you select the “eBC_2D_Mailmark” symbology.
Page 56 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This code is a height-modulated code using four different vertical bars. It is defined and used by the
Royal Mail for postal services.
Each field within any Mailmark 4-state is of a fixed and defined length. The length in total must be
either 22 (for variant C) or 26 characters (for variant L). Missing or optional attributes must be filled
with the SPACE character.
► For more information we refer to the Royal Mail Mailmark® barcode definition document
The Singapore Post 4 State Customer Code is the same as the RM4SCC.
This Code bases upon Code 128 and is used on Swedish Postal labels. The code consists of:
The check digit is calculated according to weighted modulo 11 method for Universal Postal Union
(for 8 digits).
Page 57 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This Code bases upon Code 128 and is used on Postal labels in various countries. The code
consists of:
The check digit is calculated according to weighted modulo 11 method for Universal Postal Union
(for eight digits).
OneCode 4CB
USPS 4CB
4-CB
4-State Customer Barcode
USPS OneCode Solution Barcode.
Page 58 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The barcode data consists of Routing Information and Tracking Information. The Routing
Information is optional. It is not printed in the human visible text and consists of:
The tracking information is mandatory. It is printed in the human readable text 3 types of tracking
information exist: commercial mailer constructs, online constructs, and retail constructs.
Page 59 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The subsequent listed USPS® Postnet bar codes were retired effective January 28, 2013. Mailers
must use a Basic or Full-Service Intelligent Mail® bar code (see section 6.2.25).
The United States Postal Services used this code for mass-mailing applications. Encoded are a 5
digit ZIP-code. The check digit is calculated automatically (not specified in the input data).
The barcode height should be adjusted to 3.2 mms; the module width to 0.423 mms; usually no
plain text is displayed.
The newer USPS Intelligent Mail® Barcode or IM® Barcode (4-State Customer Barcode)
additionally includes a 20 digits tracking code.
Same as POSTNET 5, but the check digit can be specified (the sixth digit).
The United States Postal Services used this code for mass-mailing applications. Encoded are a 5-
digit ZIP-code and four additional digits. The check digit is computed automatically; it cannot be
specified in the input data.
Page 60 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The barcode height should be adjusted to 3.2 mms; the module width to 0.423 mms; usually no
plain text is displayed.
The newer USPS Intelligent Mail® Barcode or IM® Barcode (4-State Customer Barcode)
additionally includes a 20 digits tracking code.
Same as POSTNET 9, but the check digit can be specified (the 10th digit).
The United States Postal Services used this code for mass-mailing applications. Encoded are a 5-
digit ZIP-code and 4 to 9 additional digits. The check digit is calculated automatically. It cannot be
specified in the input data.
The barcode height should be adjusted to 3.2 mms; the module width to 0.423 mms; usually no
plain text is displayed.
The newer USPS Intelligent Mail® Barcode or IM® Barcode (4-State Customer Barcode)
additionally includes a 20 digits tracking code.
Same as POSTNET 11, but the check digit can be specified (the 12th digit).
Page 61 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.3 2D Symbologies
6.3.1 Aztec Code
Symbology number: 92
Valid characters: ASCII 0-127 + ISO 8859-1
Quiet zone: left/right/ top/bottom: 0X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Automatic (symbology specific).
Size: --
Print control: C=AZT
Aztec Code can encode from small to large amounts of data with user-selected percentages of error
correction. The symbol size adjusts automatically depending on the amount of input data.
The input data is always analyzed and the appropriate encoding mode is chosen automatically.
Mode switching is done as required to produce the most efficient encoding.
1 to 4 layers, producing symbols from 15×15 through 27×27 pixels, may surround the compact
Aztec code core. The full core version supports up to 32 layers (that are up to 151×151 pixels).
The core type and the number of layers are controlled by the size parameter.
The full core 1-3 layer versions are not supported; instead, the compact version is used.
Page 62 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
If you mix the character types the maximum data capacity cannot be predicted exactly (due to
internal compression and character set switching - this is by design).
If you use a combination of digits and text (lower & uppercase letters), the maximum data capacity
would be about 2500 characters - but this can vary due to your input data. If you want to encode
large data amounts we recommend using only capital letters or multiple symbols (structured
append).
6.3.1.4 Format
Beside the default format for general purposes, Aztec Code supports GS1 and Industry formats.
The GS1 format adds a leading FNC1 in front of the encoded data to signal usage within the GS1
system. The FNC1 is not transmitted but has an influence to the symbology identifier.
If industry format is used, the internal data representation in the bar code will be <format specifier>
+ FNC1 + <bar code data>. In that case the bar code reader transmits “]z2” (symbology identifier for
industry standards) followed by the <format specifier> and the data.
6.3.2 Codablock F
Symbology number: 74
Valid characters: ASCII 0-127 + ISO 8859-1
Quiet zone: left/right/ top/bottom: 10X
Module width: X>=0.19mm
Print ratio: 1:2:3:4:1:2:3:4
Ratio format: 1B:2B:3B:4B:1S:2S:3S:4S
Default check digit: Automatic (symbology specific).
Size: 2 - 44 rows; 4 - 62 characters per row
Print control: C=CBF
Codablock F is de facto a “stacked” Code128 symbology. It is based upon Code 128 - each row is a
single Code 128 symbol extended with row indicator information and additional check digits. The
UCC/EAN/GS1 format indicator is supported.
Data Matrix is used for encoding large amounts of data and is ideal for marking small objects. The
symbol size adjusts automatically depending on the amount of input data.
It was developed by RVSI Acuity CiMatrix for the Space Shuttle Program and then enhanced by the
NASA and the Symbology Research Center.
Automotive
Aviation (SPEC2000)
Pharmaceutical areas
Page 63 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
ECC200
ANSI/AIM BC11
ISO/IEC 16022
Department of Defense UID, MIL-STD-130L
all other specifications that require ECC200.
The input data is always analyzed and the appropriate encoding mode is chosen automatically.
Mode switching is done as required to produce the most efficient encoding. Supported encoding
modes are
BASE256
C40
TEXT
ASCII
The maximum data capacity for binary data is equal to 1556 bytes using a Matrix of 144x144 dots.
With a dot size of 0.35 mm minimum, you get a symbol size of 50.4 * 50.4 mm.
The maximum data capacity for a matrix of 120x120 dots = 1048 Bytes.
The maximum data capacity for a matrix of 96x96 dots = 694 Bytes.
In practice, with a hand-held scanner, you can scan sizes up to 96x96 dots without problems.
Symbol sizes of 120x120 dots are ok if you are using (very) good scanners. However – TEC-IT
recommends splitting up the 1 KB input data into 2 or more symbols.
The internal encoding mode switching is highly optimized and should be supported by all bar code
readers on the market. In case of problems with document scanning solutions (like CAPTIVA, IBML
and other), we provide a compatibility mode (available from TBarCode V10.0.2).
► To turn on this compatibility mode, enter "C" into the format property (Data Matrix only).
Page 64 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The original Data Matrix specification includes 24 square formats but only six rectangular formats
with a data capacity in the lower range.
Specifically small surfaces benefit from rectangular formats resulting in a demand for rectangular
versions with a higher data volume. This led to the Data Matrix Rectangular Extension (DMRE),
which was adopted by AIM in 2014 and later specified in DIN 16587.
The DMRE adds 12 new rectangular versions with a higher capacity. In 2017, ISO published a
DMRE working draft (ISO/IEC 21471) which adds even more rectangular formats, but it does not
adopt all formats from the DIN standard.
The rectangular sizes are selected via the symbol size property (no auto select!)
GS1 Data Matrix utilizes Application Identifiers (see chapter 5) and FNC1 for variable length AI’s.
More information: Overview and technical introduction to the use of GS1 Data Matrix
4
See AIM-D Standard “DMRE 1.01”, DIN 16587 DMRE (2015)
Page 65 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
In order to generate a Data Matrix for Deutsche Post Premiumadress use the property settings
below and follow the example.
The following example refers to the product TBarCode. If you want to generate a Data Matrix with
TFORMer or Barcode Studio, the workflow is just the same.
Example:
Original data:
444541080D02540BE3FF0052232D242D000065000000010100015A31
Encoded data:
\x44\x45\x41\x08\x0D\x02\x54\x0B\xE3\xFF\x00\x52\x23\x2D\x24\x2D\x00\x00\x65\x00\x00\x00\x01
\x01\x00\x01\x5A\x31
Tab Barcode
Description Value
Barcode type: Data Matrix. The standard symbol size is 22x22 (see Figure 14). To adjust the
symbol size, please click on the Adjust button.
Barcode data (112 characters): \x44\x45\x41\x08\x0D\x02\x54\x0B\xE3\xFF\x00\x52\x23\x2D\x24\x2D\x00\x00\x65\
x00\x00\x00\x01\x01\x00\x01\x5A\x31
Translate escape sequences Make sure that this checkbox is activated.
Tab Appearance
Description Value
Barcode size and module width. Use the entry Custom – Specify module with from the drop down menu.
Module width [1/1000 mm] Use the value 423.
Display error if barcode is clipped. Make sure that you have activated this checkbox.
Page 66 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.3.3.8 DP PostMatrix
Deutsche Post PostMatrix bases on Data Matrix standard, which is used by Deutsche Post in their
RESPONSEPLUS service. It adds two additional lines at the left side of the matrix code.
You can enable the DP PostMatrix by adjusting the following code format:
The logical size of the symbol is limited to 22x22 and 26x26 dots. The module width (dot size) has
to be in a range between 0,423 and 0,508mm.
More information:
https://www.deutschepost.de/de/r/responseplus.html
In order to generate a PostMatrix code for Deutsche Post Werbeantwort use the property settings
below and follow the example.
The following example refers to the product TBarCode. If you want to generate a Data Matrix with
TFORMer or Barcode Studio, the workflow is just the same.
Example:
Original data:
DEAW00A01Z690WA52345678000010205001099~JOB4711~850
Barcode Properties
Common Value
Barcode type: Data Matrix
Page 67 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.3.4 DotCode
Symbology number: 115
.
DotCode is 2D dot code symbology designed to be reliably readable when printed by high-speed
inkjet or laser dot technologies.
The encoding modes of DotCode bases on the Code128 data encoding (with modes A, B, and C)
extended by a so-called Binary Mode.
The default interpretation for DotCode data is ECI 000003 representing the Latin-I character set.
The DotCode symbology does not have absolute capacity limits, but a maximum symbol size of
124x124 dots is recommended.
The following unprintable characters are used with the Macro 05/06 modes:
RS (Record Separator): 0x1e
GS (Group Separator): 0x1d
EOT (End of Transmission): 0x04.
Page 68 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Han Xin Code is a 2D matrix symbology, which is used for encoding large amounts of data and
provides a special support for encoding Chinese characters (character set GB18030).
The maximum data capacity for binary data is equal to 3261 bytes using a Matrix of 189x189 dots.
6.3.6 MaxiCode
Symbology number: 57
Valid characters: Alphanumeric (ASCII 0.. 255) and/or
bytes
Default Mode: Mode-4 (standard symbol)
Quiet zone: left/right/ top/bottom: 1X
Module width: --
Print ratio: n/a
Ratio format: n/a
Default check digit: Automatic (symbology specific).
Size: Fix: 1.11 x 1.054 inch
Print control: C=MXC
MaxiCode represents data by drawing hexagonal items, which are arranged around a circular
center (a so called "Bull's Eye"). Different encoding modes for including postal information (SCM)
can be adjusted: UPS Modes are Mode 2 (US Carrier) and Mode 3 (International Carrier).
The printing size is usually set to a fixed value. If you want to change the size of the symbol, adjust
a custom module width (default is 0.870 mm).
Page 69 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
The maximum data capacity of one symbol is 93 alphanumeric characters. By using the UPS®
MaxiCode compression software, you can extend this value to about 100 characters. The actual
quantity of the utilizable data depends on the selected mode, how often special characters are
used, whether numeric sequences are used (which can be compressed) and the level of error
correction.
With Structured Append, you can divide larger quantities of data into several MaxiCode symbols –
the scanner joins them when being read.
6.3.6.2 Modes
The internal data structure is regulated by different "modes". For standard purposes, data can be
encoded with two different error correction levels:
The modes for "Structured Carrier Message" (SCM) were defined by the parcel transport service
UPS®. If you want to use MaxiCode for UPS, please use these SCM modes.
In order to generate a MaxiCode symbol for UPS®, follow the steps below. The following sample
uses the properties of the barcode software component TBarCode OCX.
► Please use mode 2 or 3 (SCM) depending on your postal code. UPS MaxiCode
compression works only for these SCM modes.
If you want to encode a numeric Postcode (USA) set the mode to "SCM numeric" (Property
MaxiCode.Mode = 2). If you want to use letters in the Postcode (e.g. “D12345” for German PLZ)
choose mode SCM alphanumeric (Property MaxiCode.Mode = 3).
Page 70 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Then replace all control characters (Gs, Rs, Eot) with their hexadecimal encoding (\xnn):
Gs \x1d
Rs \x1e
Eot \x04.
Please refer to Escape Sequences for an overview of available escape sequences.
This corresponds to the UPS Data fields: Tracking Number, SCAC, UPS Account
Number, Julian Day of Collection, placeholder for Shipment ID Number, Package n/x,
Package Weight, Address Validation, Place Holder for Ship To Street Address, Ship To City,
Ship To State, End Of Transmission.
At last, check Translate escape sequences (property EscapeSequences). This is necessary
to translate the hexadecimal codes (e.g. \x1d) into the special characters “Rs”, “Gs” and
“Eot”.
The parameters for SCM (Structured Carrier Message - used for UPS) can be set directly in the
barcode data string. This allows complete control of all necessary parameters in one step.
The values for the properties postal code, country code, service class, preamble and date are then
extracted from the barcode data (Text property). Values from the text string overdrive the belonging
properties in the barcode component.
The Text property should contain the whole data string according to UPS standard (see following
picture) including preamble, date, postal code, country code, and service class.
Special characters and separators must be replaced by escape sequences (also refer to Escape
Sequences).
Gs \x1d
Rs \x1e
Eot \x04.
Page 71 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.3.7 MicroPDF417
Symbology number: 84
Valid characters: Alphanumeric and/or bytes
Quiet zone: left/right: 1X
Module width: --
Print ratio: 1:2:3:4:5:6:1:2:3:4:5:6
Ratio format: 1B:2B:3B:4B:5B:6B:1S:2S:3S:4S:5S:6S
Default check digit: Automatic (symbology specific).
Size: --
Print control: C=MPDF
TBarCode/X control sequence
For V1.x: $_tbcs b84 dThis is a MicroPDF417$_tbce
For V2.x: $_tbcs -b84 –d"This is a MicroPDF417"$_tbce
The input data is always analyzed and the appropriate encoding mode is chosen automatically.
Mode switching is done as required to produce the most efficient encoding.
Page 72 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This 2D symbology is a small variant of QR-Code with a reduced number of overhead modules and
a restricted range of sizes. It was developed for fast readability (QR = Quick Response) by Denso.
The symbol size adjusts automatically depending on input data.
Micro QR-Code has 4 different symbol sizes (M1-M4). The smallest version (=size) M1 is restricted
to numeric data and error detection, M2 may contain also alphanumeric values, and M3 and M4
may use the whole range of the QR-Code character sets (bytes, Kanji).
6.3.9 PDF417
Symbology number: 55
Valid characters: Alphanumeric (ASCII 0.. 255)
.
Symbol Technologies invented this (stacked) 2D symbology. It is used to encode large quantities of
data. It is the de-facto 2D standard symbology in the automotive industry.
The symbol is divided into rows and columns. TEC-IT software adjusts the size automatically
depending on the amount of input data. A data density of up to 900 characters per square inch is
possible.
The input data is always analyzed and the appropriate encoding mode is chosen automatically.
Mode switching is done as required to produce the most efficient encoding.
The data capacity depends on the format of the encoded data. The following limits can only be
reached with error correction level 0.
Page 73 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
If you mix the character types the maximum data capacity cannot be predicted exactly (due to
internal compression and character set switching - this is by design).
If you use a combination of digits and text (lower & uppercase letters) the maximum data capacity
would be about 1100 to 1200 characters - but this can vary due to your input data. If you want to
encode large data amounts we recommend using only capital letters or multiple symbols (structured
append).
Adjust the resolution of the generated barcode to 200 dpi (FAX devices are usually using 200 dpi).
Follow the instructions in chapter A.4 Optimize Barcode for the Output Device Resolution. Make
sure the row-height of the PDF417 is at least 3 times the module width.
The symbol is divided into rows and columns. TEC-IT software adjusts the size automatically
depending on the amount of input data. A data-density of up to 900 characters per square inch is
possible.
character set
Quiet zone: left/right/ top/bottom: 4X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Automatic (symbology specific).
Size: --
Print control: C=QRC
This 2D symbology is used to encode large quantities of data and was developed for fast readability
(QR = Quick Response Code) by Denso. The symbol size adjusts automatically depending on input
data. Special industry formats are supported.
The default interpretation for QR-Code is ECI 000020 representing the JIS8 and Shift JIS character
sets. For Latin-1, based character sets refer to QR-Code 2005 (see section 6.3.11.4).
This symbology supports the compaction of Kanji characters and (in newer specifications) also the
compaction of Chinese characters. The compaction of Kanji or Chinese characters can be activated
Page 74 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
in TEC-IT software – when used, it must be ensured that the input data complies with the Shift JIS
X 02 (Japanese) or the GB 2312 (Simplified Chinese) character set.
Maximum data capacity for binary data is 2953 bytes using a matrix of 177x177 dots. As an
example the symbol version 22 (104x104 dots) can encode approximately 1 KB of data using a low
error correction level. The resulting symbol size is about = 37x37 mm when a dot-size of 0.35 mm is
used.
The input data is always analyzed and the appropriate encoding mode is chosen automatically.
Mode switching is done as required to produce the most efficient encoding.
QR-Code is a quite complex symbology and may take a lot of CPU-time when encoding a very
large amount of data. You could speed up the encoding process by
► Set the QR-Code mask pattern to a constant value. Changing this setting could affect
readability.
► Set the symbol size to a constant value (property “QRCode.Version”) if the symbol should
have always the same size.
► Set the error correction level to "low" (“QRCode.ECLevel”). Changing this setting could
affect readability.
► Minimize computing steps: set the configuration properties of TBarCode only one time at
startup of your program, and do only change the text property for each barcode.
QR Code was originally developed for Japanese bar code applications. The supported character set
of QR Code Model 2 consists of:
SHIFT JIS / CP932 contains both of these character sets and is the Multi Byte character set used
by TBarCode for QR-Code.
The ISO/IEC 18004:2015 standard for “QR-Code” (former called “QR-Code 2005”) defines ISO-
8859-1 (Latin-1) as default character set in Byte mode!
Latin-1 - https://en.wikipedia.org/wiki/ISO/IEC_8859-1
Therefore, QR-Code (JIS) uses Shift-JIS and QR-Code (ISO) uses Latin-1 as default character set.
QR-Code (ISO) (former called QR-Code 2005) is available in TBarCode V10 and later.
Page 75 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
If you want to encode special Latin-1 characters such as the “ß” (sharp s), you come to the problem
that the SHIFT JIS table does not contain the “ß” (sharp s) character. Therefore, with QR Code JIS
version you cannot encode these special Latin-1 characters in the default encoding.
► Encoding the full Latin-1 character set is supported in QR-Code (ISO), former QR-Code
2005, which is defined by ISO/IEC 18004:2015.
Using UTF-8
One possibility to encode “sharp s” would be to switch to ISO-8859-1 (Latin-1) or UTF-8 encoding.
Disadvantage
Using other code pages or other character sets than the default character set of a 2D bar code can
lead to problems on the decoding stage. Barcode readers try to decode the QR Code data by using
the default character set (which is SHIFT JIS for QR-Code (JIS) and ISO-8859-1 (Latin-1) for QR-
Code (ISO)).
Workarounds
You could use UTF-8 in closed applications. If the data is transmitted in binary form (e.g. a serial
bar code reader or an image scanner will transmit the data as sequence of Bytes), you can decode
the bar code data as UTF-8 format by the software, which receives the data.
You may also have luck with intelligent image decoding software (e.g. ZXing) which tries to find out
if Latin-1, UTF-8 or Shift JIS is used by auto detection (also, Smartphone reader apps will do that).
If you do not have a closed application or do not have control about the bar code decoder, this
workaround cannot be used.
Theoretically, QR-Code can encode data in a user selectable character set. By design of QR-Code,
so-called “Extended Channel Interpretation” code words can be used to indicate the character set
used for the subsequent data. ECI is part of QR-Code specification and is supported by TBarCode
Escape Sequences. The problem is that many bar code decoders ignore ECI and so they are
useless.
If you want to use UTF-8 without ECI’s you could try to indicate UTF-8 format by prefixing the data
with an UTF-8 byte order mark at the start (EF BB BF). However, there is no standard for this and
you have to verify if your bar code reader / decoding software recognizes this marker.
https://www.tec-it.com/en/support/faq/tbarcode/barcode-dll.aspx
Page 76 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
.
8859-1
Quiet zone: left/right/ top/bottom: 4X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Automatic (symbology specific).
Size: --
Print control: C=QR2
QR-Code (ISO standard) is closely similar to QR-Code (JIS) and, in its QR-Code format, differs only
in the addition of the facility for symbols to appear in a mirror image orientation, for reflectance
reversal (light symbols on dark backgrounds) and the option for specifying alternative character sets
to the default.
The default interpretation for QR-Code (ISO) is ECI 000003 representing the ISO/IEC 8859-1
character set.
QR-Code (ISO) is the form of the symbology recommended for new and open systems applications.
The Swiss QR Code is part of the so-called QR-Rechnung, defined by SIX Interbank Clearing AG. It
contains the needed information to initiate customer credit transfers via barcode scanner.
The Swiss QR Code bases on the QR Code symbology, extended with a black Swiss Cross drawn
in the center of the code.
Page 77 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
With:
With:
The Combined Data Structure (Primary and Secondary data structure in one piece) is defined as
+IIIIP*U/R*Q*D*B*A*C
Page 78 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
When the fields are as described above and a separator character (“/”) is inserted between the
Primary and the Secondary data structure.
The Additional Supplemental Data section may either be empty or consist of one or more of
following fields:
With:
With:
Page 79 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
As the Multiple (or Combined) Data structure may contain more than two data fields, the secondary
part (between / and D2) may be repeated.
The legacy versions of the PAS (V1.2) also knew the Split Data structure, which consists of the
First Data Structure and the Second Data Structure. The First Data Structure, which is
specified as follows:
+/1F*G*DDDDC1
It is much the same as the Single Data Structure but has “1” as prefix.
With:
In following, you find a list of the bar code symbologies that are able to encode HIBC.
HIBC LIC 128 bases on the symbology Code 128. The data format corresponds to the HIBC LIC
Format described above. An additional modulo-43 check digit is required.
Page 80 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
HIBC LIC 39 bases on the symbology Code 39. The data format corresponds to the HIBC LIC
Format described above. An additional modulo-43 check digit is required.
“+”, “%”
Quiet zone: left/right/ top/bottom: 1X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Modulo 43 (eCDMod43)
Size: .001 till 14.0 square inch
HIBC LIC Data Matrix bases on the 2D symbology Data Matrix. The data format corresponds to the
HIBC LIC Format described above. An additional modulo-43 check digit is required.
“+”, “%”
Quiet zone: left/right/ top/bottom: 4X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Modulo 43 (eCDMod43)
Size: --
HIBC LIC QR-Code bases on the 2D symbology QR-Code. The data format corresponds to the
HIBC LIC Format described above. An additional modulo-43 check digit is required.
Page 81 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
“+”, “%”
Quiet zone: left/right/ top/bottom: 0X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Modulo 43 (eCDMod43)
Size: --
HIBC LIC Aztec Code bases on the 2D symbology Aztec Code. The data format corresponds to the
HIBC LIC Format described above. An additional modulo-43 check digit is required.
HIBC LIC PDF417 bases on the 2D symbology PDF417. The data format corresponds to the HIBC
LIC Format described above. An additional modulo-43 check digit is required.
HIBC LIC MicroPDF417 bases on the 2D symbology MicroPDF417. The data format corresponds to
the HIBC LIC Format described above. An additional modulo-43 check digit is required.
Page 82 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
HIBC LIC Codablock F bases on the stacked symbology Codablock F. The data format corresponds
to the HIBC LIC Format described above. An additional modulo-43 check digit is required.
HIBC PAS 128 bases on the symbology Code 128. The data format corresponds to the HIBC PAS
Format described above. An additional modulo-43 check digit is required.
HIBC PAS 39 bases on the symbology Code 39. The data format corresponds to the HIBC PAS
Format described above. An additional modulo-43 check digit is required.
Page 83 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
“+”, “%”
Quiet zone: left/right/ top/bottom: 1X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Modulo 43 (eCDMod43)
Size: .001 till 14.0 square inch
HIBC PAS Data Matrix bases on the 2D symbology Data Matrix. The data format corresponds to
the HIBC PAS Format described above. An additional modulo-43 check digit is required.
Valid characters: “0”..”9”, “A”..”Z”, “-“, “.”, Space, “*”, “$”, “/”,
“+”, “%”
Quiet zone: left/right/ top/bottom: 4X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Modulo 43 (eCDMod43)
Size: --
HIBC PAS QR-Code bases on the 2D symbology QR-Code. The data format corresponds to the
HIBC PAS Format described above. An additional modulo-43 check digit is required.
Valid characters: “0”..”9”, “A”..”Z”, “-“, “.”, Space, “*”, “$”, “/”,
“+”, “%”
Quiet zone: left/right/ top/bottom: 0X
Module width: --
Print ratio: 1:1
Ratio format: 1B:1S
Default check digit: Modulo 43 (eCDMod43)
Size: --
HIBC PAS Aztec Code bases on the 2D symbology Aztec Code. The data format corresponds to
the HIBC PAS Format described above. An additional modulo-43 check digit is required.
Page 84 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
HIBC PAS PDF417 bases on the 2D symbology PDF417. The data format corresponds to the HIBC
PAS Format described above. An additional modulo-43 check digit is required.
HIBC PAS MicroPDF417 bases on the 2D symbology MicroPDF417. The data format corresponds
to the HIBC PAS Format described above. An additional modulo-43 check digit is required.
HIBC PAS Codablock F bases on the stacked symbology Codablock F. The data format
corresponds to the HIBC PAS Format described above. An additional modulo-43 check digit is
required.
Page 85 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
GS1 DataBar is used to encode the GTIN (Global Trade Item Number) with Application identifier
(AI) “01“. The GTIN consists of a packaging indicator (0..9) followed by a 12 digit number (taken
from the EAN-13 article number system) followed by a check digit. The check digit on the 14th posi-
tion is computed automatically if not provided in the input data.
The height of the symbol should be at least 33X in order to support omnidirectional scanning (X =
module width). TEC-IT software prefixes the barcode data with the AI “01” automatically - do not
provide the AI 01 with your input data.
This symbology is similar to GS1 DataBar but the height should be at least 13X. Omni-directional
scanning may not be possible.
Page 86 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This symbology is similar to GS1 DataBar, but it is smaller and limited to a packaging indicator (first
digit) 0 or 1.
This symbology is similar to GS1 DataBar, but it is split into two rows to make the symbol smaller. It
is used for pharmaceutical packaging. Omni-directional scanning is not possible.
6.5.5 GS1 DataBar Stacked Omni directional (RSS-14 Stacked Omni directional)
Symbology number: 80
Valid characters: “0”..”9”, 13 digits + 1 check digit
Quiet zone: none required (1X recommended)
Module width: --
Print ratio: 1:2:3:4:5:6:7:8:9:1:2:3:4:5:6:7:8:9
Ratio format: 1B:2B:3B:4B:5B:6B:7B:8B:9B:
1S:2S:3S:4S:5S:6S:7S:8S:9S
Default check digit: EAN 14 (eCDEAN14)
Possible check digits: User supplied
Size: --
Print control: C=RO
This symbology is similar to the GS1 DataBar Stacked and supports omnidirectional scanning.
Page 87 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This is the stacked version of GS1 DataBar Expanded. The number of data segments per row can
vary between 4 and 22. The default number of data segments is four.
► Please note: For all Composite Symbologies the vertical bar “|” character is used to separate
the data of the linear symbol and the 2D composite component.
► Example: 1234567890123|TEC-IT
Page 88 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
6.6.2.2 2D Component
CC-A up to 56 digits
CC-B up to 338 digits
CC-C up to 2361 digits
The maximum data capacity of the 2D component depends on the number of data columns, which
also depends on the type of the linear component.
For instance, GS1 DataBar Stacked allows a 2D component with 2-data columns (CC-A or CC-B).
In this case the maximum capacity of a CC-A would be 52 digits with special AI combination at the
beginning of the data (AI 11/17 + 10), otherwise the capacity would be 48 digits.
With the other variants having 4 data columns (GS1 DataBar, GS1 DataBar Expanded,...) the maxi-
mum data capacity is a little bit higher = 56 digits.
This is a GS1 DataBar barcode with an attached 2D component (CC-A or CC-B). The leading
Application Identifier (AI) 01 (for the GTIN) is prefixed automatically by TEC-IT software and must
not occur in the input data. The 2D component can encode additional information like lot number,
quantity, expiration date …
This is a GS1 DataBar Truncated barcode with an attached 2D component (CC-A or CC-B).
Page 89 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This is a GS1 DataBar Limited barcode with an attached 2D component (CC-A or CC-B).
This is a GS1 DataBar Stacked barcode with an attached 2D component (CC-A or CC-B).
This is a GS1 DataBar Stacked Omni directional barcode with an attached 2D component (CC-A or
CC-B).
Page 90 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
This is a GS1 DataBar Expanded barcode with an attached 2D component (CC-A or CC-B).
This is a GS1 DataBar Expanded Stacked barcode with an attached 2D component (CC-A or CC-
B).
Page 91 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Page 92 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
7 Image Parameters
The following image types with the corresponding compression options (parameter nQuality) are
available5.
Please keep in mind that unreadable barcodes may be produced when creating a bitmap with low
resolution (see section A.4 Optimize Barcode for the Output Device Resolution).
5
Depending on the API not all image types are available for streaming – see API reference for more information.
Page 93 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Page 94 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
8 Character Encoding
Due to internationalization and localization, strings are often encoded in the UNICODE character
set, because it makes it possible to represent characters from many different languages and scripts.
However, barcode symbologies are usually able to process only a relatively small set of characters.
Whereas most of them are only capable of encoding a fix character set with a fix character
encoding – these symbologies are not affected by the encoding topic, some others (particularly 2D
symbologies) are able to switch between several code pages.
Because even these barcodes types cannot display all character sets at the same time (unlike
UNICODE), TBarCode offers the possibility to let the user decide how the input data should be
interpreted (see the properties EncodingMode and CodePage).
Different barcode symbologies use different default character encodings (=code pages).
If a code page unlike the default code page shall be used, there must also be a way to tell the
barcode reader how the data should be interpreted. That means that you have to tell the reader,
which encoding, which code page has been used for encoding. This is usually done with ECI codes
(Extended Character Interpretation) which have to be added to the barcode data (see also section
4.7 Escape Sequences (Encoding Binary Data)).
► Be aware that not all readers are able to handle ECI codes and decode the barcode data in
a correct manner. Many of the scanners just ignore the ECIs; others pass them un-
translated to the addressee and let it do the work.
Page 95 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
9.1 How to add the Leading and Trailing ‘*’ for Code 39?
No action is required. The asterisks ‘*’ are added automatically to the barcode.
Simply select Modulo 43 (or another method) as check digit Method. The automatically computed
check digit is appended at the end of the barcode.
9.3 How to add the Leading and Trailing ‘A’ (or B, C, D) for CODABAR?
Enter A&A in the format string (property “Format” – see section 4.6).
In order to generate a PDF417 which utilizes the standard aspect ratio of 3:2 there are two possible
methods:
Set a row height: module width ratio of 3:1 (default) by setting the module width to 500 (0.5 mm
constant value) and PDF417 row height to 1500 (1.5 mm).
Per default the barcode adapts automatically to the object width (= to the dimension of the bounding
rectangle). After adjusting module width, the resulting barcode width depends on the amount of the
encoded data characters and no longer on the width of the bounding rectangle.
Page 96 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
► Keep in mind to choose a suitable size of the bounding rectangle to ensure that the barcode
is not clipped.
► The dimension of the bounding rectangle must be wide enough to hold the largest data
content possible. Use the property MustFit to check whether a barcode does not fit into the
bounding rectangle.
► The SizeMode property (available since TBarCode V7) must be set to Custom Module Width
if you want your settings to take effect.
https://www.tec-it.com/support/faq/barcode/printing-decoding.aspx
https://www.tec-it.com/support/faq/tbarcode/barcode-ocx.aspx
Page 97 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
Address: Hans-Wagnerstr. 6
AT-4400 Steyr
Austria/Europe
Phone: +43 / (0)7252 / 72 72 0
Fax: +43 / (0)7252 / 72 72 0 – 77
Email: mailto:[email protected]
Web: https://www.tec-it.com/support
All other products mentioned are trademarks or registered trademarks of their respective companies. If any trademark on our web site or in this
document is not marked as trademark (or registered trademark), we ask you to send us a short message (mailto:[email protected]).
Page 98 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
A.1 General
1. Determine the optimal barcode size required by the application (see section A.2)
2. Maintain a minimal quiet zone to guarantee the readability of the barcode (see section A.3)
3. Produce the best possible output on the target device (see sections A.4)
The last and most important step, the optimization for the output device, is described in detail in
sections A.5 and following. It is described how the optimization is supported by TEC-IT barcode
software. Furthermore, it is described what you should consider when printing barcodes directly or
when using barcode images. In the last section, the approach for optimizing barcodes is illustrated
with some code examples.
In addition, some barcode specifications provide guidelines for the barcode size. This is either:
When using the barcode in an industry or transportation label the required barcode size is usually
exactly specified. The label specification provides the required information.
To guarantee the readability of the barcode a certain quiet zone around the barcode should be
maintained. The quiet zone depends on the type of the barcode:
Linear Barcodes
As a rule of thumb for linear barcodes the quiet zone should be ten times the module width.
For some barcode types, a recommended minimum is explicitly given by the specification.
2D Barcodes
The quiet zone depends on the actual barcode type. A rule of thumb cannot be given but
using 10 times the module width could fix possible problems.
GS1 DataBar Codes
Due to the technical nature of these barcodes no quiet zones are required. Only for symbo-
logies with an added composite component, you have to maintain a certain quiet zone.
Page 99 of 113
T EC- IT Ba r cod e So ft w are R ef e ren c e
For more information about quiet zones, please refer to the Barcode Reference, section 4.4.
When printing the barcode (or when creating a barcode image), the most important step is to opti-
mize the module width with respect to the output device resolution. A printer can only print whole
dots. Therefore, the bar and the space widths have to be adjusted, so that they exactly fit the
printing raster. If this adjustment is skipped, the resulting output may be inaccurate and the
readability of the barcode may suffer. Especially for low output resolutions (e.g. screen output or
thermo-transfer printing), the optimization is essential. For printers with high resolution the optimi-
zation may be negligible. However, it is recommended to optimize the barcode in any case.
Due to optimization, the size of the barcode symbol is modified very slightly.
Optimization
After the optimization the module width is exactly N times the width of a device pixel (for N is an
integer greater than 0).
In practice, the optimization can be done using different methods. Section A.5 describes all neces-
sary adjustments, which are required to enable the automatic optimization in TEC-IT software
products. Alternative you can also choose an appropriate module width, which fits the printing raster
by yourself.
Whenever printing a barcode directly or when using barcode images, you should additionally con-
sider a few rules (see sections A.6 to A.7). Finally, for developers, in section A.9 all programming
steps, which are required to optimize a barcode, are explained with a few code examples.
In TEC-IT software, per default the barcode optimization for a given resolution is turned off. All
barcodes are created in the exact size as specified, instead. If you want to turn the optimization on,
please do the following:
With the barcode image designer Barcode Studio, you have two possibilities to optimize a
barcode:
Figure 19: Barcode Optimization in Barcode Studio
The easiest method is to set the check mark in . This will automatically optimize the barcode for
the given output resolution (see ).
As an alternative you can also set the scaling unit to “Pixel” (see ) and then adjust the module
width in . Since you can only adjust integer values for the unit “pixel”, the barcode must neces-
sarily fit the raster and you will get an optimal barcode for the specified resolution.
A.5.2 TFORMer
In the barcode label software TFORMer Designer you can set Optimal Resolution to “True” (see
). This will optimize the barcode for the printer on which the document is actually printed.
A.5.3 TBarCode
In the barcode generator SDK TBarCode, you have two different adjustments for optimization:
Either you can generate the smallest possible barcode optimized for the selected decoder type and
for the specified resolution (see Figure 21).
Alternatively, for any custom sized barcodes, you can turn on the optimization by setting the
OptResolution property to “true” (see Figure 22).
The settings shown in the figure above are available in the properties dialog of the barcode control.
The “Minimal” mode creates all barcodes with the recommended minimum module widths. For
the decoder type “Hardware decoder” (e.g. suitable for barcode scanners) this would produce linear
and stacked barcodes with a module width of approximately 0.254 mm (= 10 mils) and 2D barcodes
like QR-Code or Data Matrix with a module width of about 0.5 mm ( 20 mils).
In the application specific property window (and not in the properties page as shown in Figure 21)
you will find the property OptResolution . When set to “true” the barcode will be optimized for its
predefined size.
Please note: When enabling the switch “optimal resolution” (see , and ) the barcode will
always be reduced to the next smaller size, in which it can be printed in optimal quality.
Under unfortunate circumstances this size reduction might cause the module width to drop be-
low a given minimal module width. Therefore, it is recommended to enlarge the bounding rect-
angle of the barcode to the maximum available area whenever possible. This way you will get
the largest possible optimized barcodes on the printout.
However, instead of using OptResolution the following approach may sometimes be even more
suitable:
Experienced users can adjust the module width of the barcode manually. E.g. in TFORMer
you can specify the module width in mm. When doing this you have to take care that the ad-
justed module width is suitable for the printer resolution.
Example: printer resolution = 600 dpi
One dot has 1/600 inch 0.00167 inches 0.0423 mm
For this printer you could use N * 0.0423 mm (for N is an integer greater than 0) as
module width
(Hint: You can also use Barcode Studio to do the necessary module width calculations!)
By default, TEC-IT software uses the whole available space (the bounding rectangle) to render a
barcode. This means that the software computes the module width based on the available space
and on the data to be encoded.
For printing with high resolutions such as 600 dpi, this approach is OK. Even if the resulting quality
of the barcode is not optimal with respect to the printer resolution, the inaccuracies are usually so
small, that they do not lead to a noticeable loss in the barcode quality. To get a sense for the
occurring deviations you could check the output quality for your settings with Barcode Studio.
On the other hand, if the printer resolution is low (equal or smaller to 300 dpi) or the data density is
very high – or to be more precisely if the module width in device pixels is very small, the loss of
quality may be noticeable. Therefore, you should always optimize the barcode quality in such
circumstances. In order to do so, you can either adjust the module width, so that it exactly fits the
printing raster, or you can set the OptResolution flag to “true”.
When using barcode images, you should always generate them in optimal quality, meaning that all
spaces and all bars should be represented with a whole number of image pixels. Images are (in
principle) device independent. Therefore, this should always be possible.
► Whenever possible use the property OptResolution to adapt the module width to the
resolution (pixel raster) of the image. Developers also have the possibility to use the function
BCGetOptimalBitmapSize(). Given the requested size of the barcode (in device pixels), it will
optimize the width and the height of the barcode.
► Use lossless image formats (like PNG instead of JPG). Do not use any compression
reducing the picture quality.
► Avoid any post processing like scaling/resizing with image editing software! Each post-
processing step means a potential loss of the barcode quality.
However, when using the images (e.g. when embedding them in a layout) and, in a further conse-
quence, when printing them you have to be aware that
the original barcode image will be scaled with a particular scaling factor.
This scaling occurs when the image is rastered for the printer resolution. It may negatively influence
the barcode quality of the printout. Therefore, you should ideally always create the barcode image
in the same resolution in which it will be printed. Consequently, any scaling between the image and
the printout is avoided. If scaling is inevitable for any reason, you should take care that after the
scaling the barcode can be rendered with whole device pixels on the target printer.
In section A.7.3 a general approach how to optimize a barcode image for a specific printer
resolution is described. However, before going into detail we want to explain a few general
principles for using barcode images.
In general, barcode images are used in order to embed a barcode into arbitrary layouts (e.g. on a
HTML page, in a desktop publishing program, in a report generator, etc.).
Therefore, you usually specify a rectangular region on the layout in which the image will be inserted.
This rectangular region defines the size (in device independent units like mm) in which the barcode
will be printed. (Only exception: In HTML, you specify the actual printout size indirectly via screen
pixels. Nonetheless this pixel size can be translated to a specific target size on your printout – for
details see section A.7.2.)
Now, the basic principle is that the printout will always have exactly the same size as specified in
the layout. The size of the embedded source image actually does not have any influence on the
printout size. However, the quality of the printout will vary depending on different source image
dimensions!
► Create the image exactly in the same resolution as used for printing (printer resolution).
► If you do not know in which resolution the barcode image will be printed, use a sufficiently
high resolution, so that the image is likely to printed in an aspect ratio of 1:1 or that it is being
down-scaled for printing (down-scaling a large image usually produces better results on the
printout than up-scaling a smaller image).
As already stated above, the basic idea for generating high quality barcode printouts is to generate
detailed barcode images, which are optimized for a specific printer resolution. This approach can
also be used for HTML. The high-resolution images are only scaled down for display in the browser
window. Internally the images keep their high resolution. Thus, the browser can generate more
accurate printouts compared to using source images in a low screen resolution.
To specify the dimension in which the barcode will be displayed on the HTML page you can use the
image attributes “width” and “height”. These attributes specify the display size of images on the
screen. Within the HTML code, this would look like:
<img src="/images/barcode.png" width="250" height="60">
The screen size of the barcode image does not only specify the size in which the barcode is dis-
played in the browser window, it also specifies the size in which the barcode will be drawn on the
printout. For translation, you need to know:
► All images, which are displayed in the web browser, are assumed to have a resolution of 96
dpi. Based on that resolution the size on the printout is calculated. This calculation is inde-
pendent of the printer resolution.
Example:
If a barcode image is displayed with 200 pixels, it will appear on your printout with a size of about 53
mm (200 pixels / 96 dpi 2.083 inches 52.91 mm).
This means: In order to make sure that the barcode has the correct size on the printout you have to
calculate the pixel size that is required for 96 dpi. Therefore divide the size (of the high-resolution
image) by the printer resolution and then multiply it by 96 dpi. This value must be used as “width”
(or as “height”) attribute for the image.
Example:
Please note:
► When using such high-resolution images you have to increase the font size for the barcode
to make the text look normal.
► Linear barcodes:
To avoid large file sizes you can use a higher resolution in the horizontal dimension of the
barcode image only. Please note: This approach will produce distorted fonts. So switch off
the font in the barcode and print the text separately using HTML.
► Instead of generating the barcode image for a dedicated printer resolution, you can also
produce the barcode with twice or triple the resolution as displayed in the browser window.
This will produce a good approximation. With more detailed source images, the rasterizing
errors are reduced and the printing quality is increased.
Below we will describe a general approach for optimizing barcode images with respect to the printer
resolution. It can be used for all images, which are going to be printed. This optimization is only
possible if you know the resolution of the target printer.
6
The module count is the number of modules, which is required for drawing the barcode. Example: If the barcode consists of
a bar, followed by a space and then followed by two bars (making one big bar) we would count 4 modules.
The module count can be retrieved using CountModules for linear barcodes and 2DXCols for 2D barcodes.
Additional considerations:
► If you do not know the resolution of the target printer, it is a good approximation to use a
sufficiently high image resolution (e.g. 600 dpi). In any case the barcode image should be
optimized with respect to the image pixels (see step 4!).
► If you want to save space and therefore intend to create smaller images (e.g. for web
applications) you can do that. In this case you should take care, that after upscaling to the
printer resolution, the barcode can be printed with whole printer dots (see also the example
in section A.9.3).
Remark:
Another method to get optimal printouts would be to generate all barcode images with exactly one
pixel module width. Such images have an optimal barcode quality and can be up-scaled to any re-
quired size. Since you do not know if the printer driver uses anti-aliasing (and produces half tones)
when upscaling an image, or if you want to get a readable barcode text, the optimization as des-
cribed above is recommended.
In TEC-IT software, you do not only have the possibility to use bitmap images, but also vector
graphics images. Vector graphics have the advantage, that they do not contain any rastered data,
but only structural information about the barcode (positions and sizes of all bars). Therefore:
► All vector graphics can be arbitrarily scaled without gaining any loss of quality.
► The file size is usually rather small (it is independent of the barcode dimensions).
► However, during printing also vector graphics will eventually be rastered. Therefore, the
module width of the barcode should ideally always be a whole multiple of the dot size of your
printer. If the module width does not fit the printing raster, there will be inaccuracies on the
printout.
As a vector based file format TEC-IT supports the Encapsulated PostScript format (or short EPS
format). Considering the advantages as stated above it is usually a good idea to use the EPS
format instead of bitmap files wherever possible. However, please note that this format is only
supported by a few applications!
In this example, a linear barcode will be optimized for output. We assume the following
specification:
Barcode width = 60 mm
Barcode height = 30 mm
Resolution of the output device = 200 dpi (dots per inch)
Based on this specification we first calculate the projected barcode size in target device pixels. This
size (actually only the width) is then adjusted so that each bar and each space of the barcode
exactly matches the output raster. This is achieved by making sure that the width of one module is a
multiple of one device pixel. A similar height adjustment is not necessary because the scanning
process is usually not affected by the height of the barcode.
Then we calculate the module width and adopt it, so that all bars and spaces can be displayed with
whole pixels:
// 1) Specify the barcode type, the barcode data, etc.
//
// Do your barcode adjustments here!
// 7) The optimized barcode width can now be used to draw the barcode or to save
// the barcode as an image. In this sample, the barcode will be saved as an image.
::BCSaveImage ( pBC, "C:\\ MyBarcode.BMP", eIMBmp,
lBarcodeWidth, lBarcodeHeight, ldpi, ldpi );
A.9.2 2D Barcodes
Barcode width = 60 mm
Barcode height = 30 mm (assuming a rectangular 2D barcode like PDF417)
Resolution of the output device = 200 dpi
The following code example shows the complete calculation, which is necessary for optimizing a 2D
barcode for the given output, device resolution:
// 1) Specify the barcode type, the barcode data, etc.
//
// Do your barcode adjustments here!
// 5) The optimized barcode width and height can now be used to draw the barcode or to
// save the barcode as an image. In this sample, the barcode will be saved as an image.
::BCSaveImage ( pBC, "C:\\MyBarcode.BMP", eIMBmp,
lBarcodeWidth, lBarcodeHeight, ldpi, ldpi );
A.9.3 Prepare a Barcode with a specific Module Width for a Web Page
In the following example, we want to create a barcode image with a module width of 15 mils. The
printer resolution is assumed 600 dpi.
Furthermore, we want to generate a rather small image. Therefore we will use just 3 (instead of 9)
pixels as module width. This means the barcode image is actually optimized for a resolution of 200
dpi. For printing with 600 dpi, the image will be scaled by 3 (3 * 3 = 9 device pixels). That is perfect.
First, we calculate the horizontal size of the barcode image in pixels. Therefore, we multiply the
number of barcode modules width the intended module width (in pixel):
' the number of modules in the barcode
CntModules = tbc.CountModules8
Now we calculate the desired display size in the browser, so that the barcode will finally be printed
in the correct size on the printout. HTML assumes a screen resolution of 96 dpi. The image was
optimized for 200 dpi. Thus, we have to scale the image for display in the browser by 96 / 200.
7
In TBarCode SDK V10+ you can use DLL function BCGetOptimalBitmapSize()
8
In TBarCode SDK V10+ you can use COM method GetOptimalBitmapSize()
This procedure works for web applications (ConvertToStream method) as well as for storing image
files (SaveImage method).
A.9.4 Create a 2D Barcode Image with the Module Width specified in Pixels
To get a precise image you can adjust the size of the image in pixels according to the required
horizontal and vertical size of the barcode. By using the properties 2DXCols (number of columns in
modules) and 2DXRows (number of rows in modules) the size of the image can be optimized:
Dim nScale As Long
Dim nXSize As Long
Dim nYSize As Long
The following code snippet shows you how to use the function GetOptimalBitmapSize().
Dim lWidth As Long
Dim lHeight As Long
' 3) Save the barcode using the optimized image width and height
' (Please note: The resolution specified by the last two parameters is only stored as
' Information in the image attributes (if supported by the image type).
' It has no influence on the pixel size of the generated image.)
TBarCode111.SaveImage "C:\temp\Doc1.bmp", TBarCode11Lib.eIMBmp, lWidth, lHeight, 72, 72
The information contained in this chapter is subject to be changed without notification. We are sorry,
but we cannot guarantee that all information is error-free. TEC-IT Datenverarbeitung GmbH is not
liable for any damages or lost profits if somebody relies on the information in this chapter.
We recommend the following quiet zones to be used with the listed bar code symbologies. Please
consider that quiet zones often depend on a specific label format, so please hold on to your
specification (if you have one).
9
In TEC-IT software, the quiet zones for this symbology are included in the barcode generation algorithm. You need no extra
adjustments.
B.2 2D Symbologies
10
In TEC-IT software, the quiet zones for this symbology are included in the barcode generation algorithm. You need no
extra adjustments.
Here a short overview about the available ECI specifiers for defining the encoding of subsequent
bar code data (see also section 4.7.)