Sign in Join
Wiki copytemporary

LazBarcodes: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## General
22
33![](/wiki-images/0/0c/Lazbarcodes_demo.png)
44
55### About
66
77*LazBarcodes* is a set of controls to create 1D and 2D barcodes. The backend engine is a port of [Zint](http://sourceforge.net/projects/zint/) at sourceforge. Some units were heavily refactored to obtain a more Pascal-like code.
88
99The library supports the generation of 1D and 2D barcodes:
1010
1111- **1D barcodes**: Code-11, Code-128, Channel code, EAN-128, several 2-of-5 variants, several 3-of-9 variants, EAN, UPC, Plessey, MSI/Plessey, Telepen, medical/pharmaceutical codes (CodaBar, Code-32, Pharma one-track, Pharma two-track, PZN), postal codes (Australian post, Japanese post, Korean Post, Deutsche Post IdentCode and LeitCode, Dutch KIX, Planet, PostNet, Royal Mail RM4SCC)
1212- **Stacked barcodes**: PDF417, compact PDF417, MicroPDF417
1313- **2D barcodes**: QR, MicroQR, Aztec, Aztec Rune, Data Matrix, Maxicode
1414
1515### Author
1616
17172011 - Jose Mejuto
1818
1919### License
2020
2121BSD 3 as it is being inherited from the zint source code.
2222
2323### Dependencies / System Requirements
2424
2525- None
2626
2727## Getting LazBarcodes
2828
2929The download contains the packages *lazbarcodes* and *lazbarcodes_runtimeonly*. The first one gives you visual components of the above barcodes and the second can be used just to access the ported zint code for advanced barcode generation.
3030
3131### Development version
3232
3333The latest source code can be found on [Lazarus-CCR](https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/lazbarcodes/). Use SVN to load the source files, or download the "Snapshot" by clicking on the corresponding button of the sourceforge site and unzip it to some directory. For installation go to "Package" \> "Load package file (*.lpk)", navigate to the folder with the downloaded sources and load the fole *lazbarcodes_runtimeonly.lpk*. Then load the package *lazbarcodes.lpk*. Click "Use" \> "Install", and confirm the question to rebuild the IDE. After some time the IDE restarts, and you find the barcodes in the "LazBarcodes" tab of the component palette.
3434
3535### Release version
3636
3737Occasionally a release version is prepared and made available for easy installation by means of the [[Online Package Manager|Online-Package-Manager]] in the Lazarus IDE. Open "Package" \> "Online package manager", check the item "LazBarcodes" in the list and click "Install". Again, confirm the question to rebuild the IDE. When the IDE restarts after some time you find the barcodes in the "LazBarcodes" tab of the component palette.
3838
3939### Change Log
4040
4141- v2.0.0: Added a lot of 1D barcodes
4242- v1.0.3: Internally used units renamed to avoid naming conflict with CodeTyphon package PL_APE.
4343- v1.0.2: Change of license from GPL to BSD
4444- Initial development.
4545
4646## Documentation
4747
4848### General
4949
5050The components installed by the LazBarcodes package descent from TGraphicControl and thus inherit fundamental control properties such as `Width`, `Height`, `AutoSize`, etc. They share a variety of other properties and methods; some properties, however, are not published fwhen they are not appropriate for the current barcode type.
5151
5252#### Properties
5353
5454- `Text: TCaption` - Text to be encoded as a barcode. Note that, depending on the barcode type, there exist limitations on allowed text length and allowed characters.
5555- `ShowHumanReadableText: Boolean` - Displays the encoded text underneath the barcode symbol. Note that the encoding algorithm may add check sum or additional characters to the input text.
5656- `BarcodeType` - Some barcode components can be modified to create various symbologies by selecting the corresponding value in this (type-dependent) enumeration.
5757- `Scale: Integer` - Horizontal scaling factor of the barcode determining the width of the smallest feature (bar or space) in pixels. `Scale=0` tries to select an internal scale value such that the barcode fills the control's width as much as possible. Note that this scaling factor applies to all bars and spaces and therefore, increasing `Scale` does not increase the barcode with gradually but by more or less large steps.
5858- `SymbolHeight: Integer` - Similar to `Scale`, but refers now to the vertical direction. Again, `SymbolHeight=0` fills adjusts the internal symbol height to fill the height
5959- `MinSymbolHeight: Integer` - Prevents the symbol to become too small.
6060- `RecommendedSymbolSize: Boolean` - If `true`, overrides the `Scale` and `SymbolHeight` settings so that the size of the symbol is as close as possible to its specification.
6161- `AutoSize: Boolean` - inherited standard property. When `true`, `Width` and `Height` are selected such that the current size of the barcode is enclosed. Note that `AutoSize=true` is ignored when `Scale=0` or `SymbolHeight=0`.
6262- `Margin: Integer` - Amount of empty pixels added around the symbol
6363- `WhitespaceWidth: Integer` - Amount of empty pixels added to the left and right of some symbologies to enhance readability of barcode scanners.
6464- `BearerBarMode: TBearerBarMode = (bbmNone, bbmBearerBars, bbmBox)` - adds horizontal bars above and below the barcode (`bbmBearerBars`) or a box around the barcode (`bbmBox`). The thickness of the bars and the box border is given by the `Margin` multiplied by the currently used internal `Scale` parameter.
6565- `ForegroundColor: TColor` - Color used to draw the bars
6666- `BackgroundColor: TColor` - Color used to draw the background of the barcode (spaces, margin and text area).
6767
6868#### Methods
6969
7070- `CopyToClipboard` - Copies the barcode to the clipboard as a bitmap
7171- `SaveToFile(const AFileName: String; AImageClass: TFPImageBitmapClass)` - Saves the barcode as a graphic image of the specified class to file.
7272- `SaveToStream(const AStream: TStream; AImageClass: TFPImageBitmapClass)` - Saves the barcode as a graphic image of the specified class to a stream.
7373- `SaveToEPSFile(const AFileName: String)` - Saves the barcode as EPS file
7474- `SaveToEPSStream(const AStream: TStream)` - Saves the barcode in EPS format as stream.
7575- `SaveToSVGFile(const AFileName: String)` - Saves the barcode in SVG format to file
7676- `SaveToSVGStream(const AStream: TStream)` - Saves the barcode in SVG format to a stream
7777- `ErrorString: String` - In case of an error, this read-only property contains a message why the `Text` could not be encoded correctly.
7878
7979### Components
8080
8181#### 1D codes
8282
83-<thead>
84-
85-</thead>
86-<tbody>
87-
88-<img src="tbarcode2of5.png" title="tbarcode2of5.png" alt="tbarcode2of5.png" /></td>
89-
90-Matrix 2-of-5</td>
91-
92-photo finishing<br />
93-airline ticket marking</td>
94-
95-photo developing envelopes<br />
96-warehouse sorting systems</td>
97-
98-cartons of some products</td>
99-
100-<img src="tbarcode3of9.png" title="tbarcode3of9.png" alt="tbarcode3of9.png" /></td>
101-
102-<code>bctLOGMARS</code></td>
103-
104-LOGMARS</td>
105-
106-industrial applications<br />
107-LOGMARS: different bar widths</td>
108-
109-<code>'–', '.', '$', '/', '+', '%'</code></td>
110-
111-(C39ext)</td>
112-
113-industrial applications</td>
114-
115-<img src="tbarcodec11.png" title="tbarcodec11.png" alt="tbarcodec11.png" /></td>
116-
117-<img src="tbarcodec128.png" title="tbarcodec128.png" alt="tbarcodec128.png" /></td>
118-
119-GS1-128</td>
120-
121-to be given in square parenthesis</td>
122-
123-<img src="tbarcodechannelcode.png" title="tbarcodechannelcode.png" alt="tbarcodechannelcode.png" /></td>
124-
125-<img src="tbarcodeean.png" title="tbarcodeean.png" alt="tbarcodeean.png" /></td>
126-
127-<code>'+'</code> for addon code</td>
128-
129-<code>'+'</code> for addon code</td>
130-
131-<code>'+'</code> for addon code</td>
132-
133-plus 2 check digits</td>
134-
135-(more compact than UPC/A)</td>
136-
137-<code>'+'</code> for addon code</td>
138-
139-<img src="tbarcodemedical.png" title="tbarcodemedical.png" alt="tbarcodemedical.png" /></td>
140-
141-<img src="tbarcodeplessey.png" title="tbarcodeplessey.png" alt="tbarcodeplessey.png" /></td>
142-
143-(see <code>CheckChar</code> property below)</td>
144-
145-<img src="tbarcodepostal.png" title="tbarcodepostal.png" alt="tbarcodepostal.png" /></td>
146-
147-<a href="http://fileformats.archiveteam.org/wiki/Australia_Post_standard_customer_barcode">http://fileformats.archiveteam.org/wiki/Australia_Post_standard_customer_barcode</a></td>
148-
149-<code>'A'</code>: Ascender<br />
150-<code>'F'</code>: Full height<br />
151-<code>'T'</code>: Tracker (short bar)</td>
152-
153-<img src="tbarcodetelepen.png" title="tbarcodetelepen.png" alt="tbarcodetelepen.png" /></td>
154-
155-'X' must be at even character position.</td>
156-
157-</tbody>
83+| Component | BarcodeType | Name | Application | Allowed chars | Text length | Reference |
84+|---|---|---|---|---|---|---|
85+| [[File:Tbarcode2of5.png]] `TBarcode2of5` | `bctCode25Standard` | Standard 2-of-5, or Matrix 2-of-5 | Warehouse sorting; photo finishing; airline ticket marking | `'0'..'9'` | up to 80 | https://en.wikipedia.org/wiki/Matrix_2_of_5 |
86+| | `bctCode25DataLogic` | DataLogic 2-of-5 | Processing and sorting of mail for the Chinese Postal Service | `'0'..'9'` | up to 80 | https://en.wikipedia.org/wiki/Matrix_2_of_5 |
87+| | `bctCode25IATA` | IATA 2-of-5 | Airline cargo | `'0'..'9'` | up to 45 | https://en.wikipedia.org/wiki/Industrial_2_of_5#IATA_2_of_5 |
88+| | `bctCode25Industrial` | Industrial 2-of-5 | Cardboard printing; photo developing envelopes; warehouse sorting systems | `'0'..'9'` | up to 45 | https://en.wikipedia.org/wiki/Industrial_2_of_5 |
89+| | `bctCode25Interleaved` | Interleaved 2-of-5 | 135 film; cartons of some products | `'0'..'9'` | up to 89 | https://en.wikipedia.org/wiki/Interleaved_2_of_5 |
90+| | `bctITF14` | ITF-14 | Packaging levels of a product | `'0'..'9'` | up to 13 | https://en.wikipedia.org/wiki/ITF-14 |
91+| [[File:Tbarcode3of9.png]] `TBarcode3of9` | `bctCode39; bctLOGMARS` | Code 3-of-9 (C39); LOGMARS | Name badges, inventory and industrial applications; LOGMARS: different bar widths | `'0'..'9', 'A'..'Z', ' ', '–', '.', '$', '/', '+', '%'` | up to 74 | https://en.wikipedia.org/wiki/Code_39 |
92+| | `bctCode39Ext` | Extended Code 3-of-9 (C39ext) | Name badges, inventory and industrial applications | `#0..#127` | up to 74 | https://en.wikipedia.org/wiki/Code_39#Full_ASCII_Code_39 |
93+| | `bctCode93` | Code-93 | Canada post | like C39 | up to 107 | https://en.wikipedia.org/wiki/Code_93 |
94+| [[File:Tbarcodec11.png]] `TBarcodeC11` | | Code-11 | Telecommunication | `'0'..'9', '-'` | up to 121 | https://en.wikipedia.org/wiki/Code_11 |
95+| [[File:Tbarcodec128.png]] `TBarcodeC128` | `bctC128` | Code-128 | Industrial applications | `#0..#127` | up to 160 | https://en.wikipedia.org/wiki/Code_128 |
96+| | `bctEAN128` | EAN-128, or GS1-128 | Industrial applications | `#0..#127` | Depending on "Application identifier"; to be given in square parenthesis | https://en.wikipedia.org/wiki/GS1-128 |
97+| [[File:Tbarcodechannelcode.png]] `TBarcodeChannelCode` | | Channel Code | high densitiy codes | `'0'..'9'` | up to 7 | https://barcodeguide.seagullscientific.com/Content/Symbologies/Channel_Code.htm |
98+| [[File:Tbarcodeean.png]] `TBarcodeEAN` | `bctEAN` | EAN-8, EAN-13 | Article numbers | `'0'..'9'`; `'+'` for addon code | up to 19 | https://en.wikipedia.org/wiki/International_Article_Number |
99+| | `bctEAN14` | EAN-14 | Trading goods | `'0'..'9'` | up to 13 | https://www.barcodestalk.com/ean14 |
100+| | `bctISBN` | ISBN | Books | `'0'..'9', 'X'`; `'+'` for addon code | 9, 10 or 13 | https://en.wikipedia.org/wiki/International_Standard_Book_Number |
101+| | `bctNVE18` | NVE-18 | Shipping and storage | `'0'..'9'` | up to 25 | |
102+| | `bctUPCA` | UPC/A | Trade items | `'0'..'9'`; `'+'` for addon code | up to 10; plus 2 check digits | https://en.wikipedia.org/wiki/Universal_Product_Code |
103+| | `bctUPCE` | UPC/E | Trade items (more compact than UPC/A) | `'0'..'9'`; `'+'` for addon code | up to 7 | https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E |
104+| [[File:Tbarcodemedical.png]] `TBarcodeMedical` | `bctCodabar` | Codabar | Blood identification | `'0'..'9', '-', '$', ':', '/', '.', '+', 'A', 'B', 'C', 'D'` | up to 60 | https://en.wikipedia.org/wiki/Codabar |
105+| | `bctCode32` | Code 32 (Italian PHARMACODE) | Pharmaceutical products in Italy | `'0'..'9'` | up to 8 | https://barcodeguide.seagullscientific.com/Content/Symbologies/Code_32.htm |
106+| | `bctPharmaOne` | Pharmacode One-Track | Packaging of pharmaceutical products | `'0'..'9'` | up to 6 | https://barcode-test.com/301/what-is-pharmacode/ |
107+| | `bctPharmaTwo` | Pharmacode Two-Track | Packaging of pharmaceutical products | `'0'..'9'` | up to 8 | https://barcodeguide.seagullscientific.com/Content/Symbologies/TwoTrackPharmacode.htm |
108+| | `bctPZN7` | Pharmazentralnummer (PZN) | Identification of pharmaceutical products (Germany, Austria) | `'0'..'9'` | 7 (6 by user + 1 auto-generated check digit) | https://barcodeguide.seagullscientific.com/Content/Symbologies/PZN.htm |
109+| | `bctPZN8` | Pharmazentralnummer (PZN) | Identification of pharmaceutical products (Germany, Austria) | `'0'..'9'` | 8 (7 by user + 1 auto-generated check digit) | https://barcodeguide.seagullscientific.com/Content/Symbologies/PZN.htm |
110+| [[File:Tbarcodeplessey.png]] `TBarcodePlessey` | `bctPlessey` | Plessey | Shelf tags in retail stores | `'0'..'9', 'A'..'F'` | up to 65 | https://en.wikipedia.org/wiki/Plessey_Code |
111+| | `bctMSIPlessey` | MSI/Plessey | Shelf tags in retail stores | `'0'..'9'` | depending on checkdigits (see `CheckChar` property below) | https://en.wikipedia.org/wiki/MSI_Barcode |
112+| [[File:Tbarcodepostal.png]] `TBarcodePostal` | `bctAustraliaPostCustomer` | Australia Post Standard Customer Barcode | Postal code and automatic mail sorting in Australia | `'0'..'9', 'A'..'Z', 'a'..'z'`, space and hash (`'#'`) | 8, 13, 16, 18, or 23 | http://www.neodynamic.com/Products/Help/BarcodeWPF3.0/barcodes/AustraliaPost.htm; http://fileformats.archiveteam.org/wiki/Australia_Post_standard_customer_barcode |
113+| | `bctAustraliaPostReplyPaid` | Australia Post Reply Paid | Postal code and automatic mail sorting in Australia | `'0'..'9'` | 8 | http://www.neodynamic.com/Products/Help/BarcodeWPF3.0/barcodes/AustraliaPost.htm; http://fileformats.archiveteam.org/wiki/Australia_Post_standard_customer_barcode |
114+| | `bctAustraliaPostRoute` | Australia Post Routing | Postal code and automatic mail sorting in Australia | `'0'..'9'` | 8 | http://www.neodynamic.com/Products/Help/BarcodeWPF3.0/barcodes/AustraliaPost.htm; http://fileformats.archiveteam.org/wiki/Australia_Post_standard_customer_barcode |
115+| | `bctAustraliaPostRedirect` | Australia Post Redirection | Postal code and automatic mail sorting in Australia | `'0'..'9'` | 8 | http://www.neodynamic.com/Products/Help/BarcodeWPF3.0/barcodes/AustraliaPost.htm; http://fileformats.archiveteam.org/wiki/Australia_Post_standard_customer_barcode |
116+| | `bctDAFT` | DAFT Code | Generic system of transcribing 4-state barcodes where the data encoding is provided by an external program. | `'D'`: Descender; `'A'`: Ascender; `'F'`: Full height; `'T'`: Tracker (short bar) | up to 50 | https://www.neodynamic.com/barcodes/DAFT-4-state-Barcode.aspx |
117+| | `bctDeutschePostIdentCode` | Deutsche Post Identcode | Mail routing in Germany | `'0'..'9'` | (up to) 11 digits | https://barcodeguide.seagullscientific.com/Content/Symbologies/Identcode.htm |
118+| | `bctDeutschePostLeitCode` | Deutsche Post Leitcode | Specifies destination for mail in Germany | `'0'..'9'` | (up to) 14 digits | https://barcodeguide.seagullscientific.com/Content/Symbologies/Leitcode.htm |
119+| | `bctFIM` | FIM (Facing Identification Mark) | Automatic facing, or orientation, of the mail piece for cancellation | `'A'..'D', 'a'..'d'` | 1 | https://en.wikipedia.org/wiki/Facing_Identification_Mark |
120+| | `bctJapanPost` | Japanese Post 4-State Customer Code | Encodes addresses on mail for faster automatic processing in Japan | `'0'..'9', 'A'..'Z', '-'` | | https://barcodeguide.seagullscientific.com/Content/Symbologies/Japanese_Postal.htm |
121+| | `bctKix` | Dutch KIX 4-State Customer Code | Automatic processing of bulk mail in the Netherlands | `'0'..'9', 'A'..'Z'` | up to 18 chars | https://barcodeguide.seagullscientific.com/Content/Symbologies/KIX_4_State_Customer_Code.htm |
122+| | `bctKoreaPost` | Korean Postal Authority Code | Automatic sorting of mail in Korea | `'0'..'9'` | up to 6 digits | https://barcodeguide.seagullscientific.com/Content/Symbologies/Korea_Post.htm |
123+| | `bctPlanet` | USPS PLANET (Postal Alpha Numeric Encoding Technique) | Automatic identification, sorting, and tracking of pieces of mail in the U.S. | `'0'..'9'` | up to 38 | https://barcodeguide.seagullscientific.com/Content/Symbologies/USPS_PLANET.htm |
124+| | `bctPostNet` | USPS POSTNET (Postal Numeric Encoding Technique) | Sorting of business reply and courtesy reply mail in the U.S. | `'0'..'9'` | up to 38 | https://en.wikipedia.org/wiki/POSTNET |
125+| | `bctRM4SCC` | RM4SCC (Royal Mail 4-State Customer Code) | Mail service in United Kingdom | `'0'..'9','A'..'Z'` | up to 120 | https://en.wikipedia.org/wiki/RM4SCC |
126+| [[File:Tbarcodetelepen.png]] `TBarcodeTelepen` | `bctTelepen` | Telepen Alpha | University and other academic libraries in the UK | `#0..#127` | up to 30 | https://en.wikipedia.org/wiki/Telepen |
127+| | `bctTelepenNum` | Telepen Numeric | University and other academic libraries in the UK | `'0'..'9', 'X'`; 'X' must be at even character position. | up to 60 | https://en.wikipedia.org/wiki/Telepen |
158128
159129#### Stacked barcodes
160130
161-<thead>
162-
163-</thead>
164-<tbody>
165-
166-<img src="tbarcodepdf417.png" title="tbarcodepdf417.png" alt="tbarcodepdf417.png" /></td>
167-
168-Compact PDF417</td>
169-
170-</tbody>
131+| Component | BarcodeType | Name | Application | Allowed chars | Text length | Reference |
132+|---|---|---|---|---|---|---|
133+| [[File:Tbarcodepdf417.png]] `TBarcodePDF417` | `bctPDF417` | PDF417 (Portable Data File) | Government-issued identification cards (such as driver's licenses), airline boarding passes, postage stamps, package labels, etc. | `#0..#255` (ISO-8859-1) | up to 1850 alphanumeric, or 2710 numeric characters, or 1108 bytes | https://en.wikipedia.org/wiki/PDF417 |
134+| | `bctPDF417trunc` | PDF417 truncated; Compact PDF417 | Government-issued identification cards (such as driver's licenses), airline boarding passes, postage stamps, package labels, etc. | `#0..#255` (ISO-8859-1) | up to 1850 alphanumeric, or 2710 numeric characters, or 1108 bytes | https://www.neodynamic.com/Products/Help/BarcodeCF2.0/barcodes/CompactPdf417.htm |
135+| | `bctMicroPDF417` | MicroPDF417 | Designed to encode a moderate amount of data in a very small space | `#0..#255` (ISO-8859-1) | up to 250 alphanumeric or 366 numeric characters | https://barcodeguide.seagullscientific.com/Content/Symbologies/MicroPDF417.htm |
171136
172137#### 2D codes
173138
174-<thead>
175-
176-</thead>
177-<tbody>
178-
179-<img src="tbarcodeaztec.png" title="tbarcodeaztec.png" alt="tbarcodeaztec.png" /></td>
180-
181-<img src="tbarcodeaztecrune.png" title="tbarcodeaztecrune.png" alt="tbarcodeaztecrune.png" /></td>
182-
183-<img src="tbarcodedatamatrix.png" title="tbarcodedatamatrix.png" alt="tbarcodedatamatrix.png" /></td>
184-
185-<img src="tbarcodeqr.png" title="tbarcodeqr.png" alt="tbarcodeqr.png" /></td>
186-
187-<img src="tbarcodemicroqr.png" title="tbarcodemicroqr.png" alt="tbarcodemicroqr.png" /></td>
188-
189-<img src="tbarcodemaxicode.png" title="tbarcodemaxicode.png" alt="tbarcodemaxicode.png" /></td>
190-
191-</tbody>
139+| Component | Name | Application | Allowed chars | Text length | Reference |
140+|---|---|---|---|---|---|
141+| [[File:Tbarcodeaztec.png]] `TBarcodeAztec` | Aztec Code | Transport ticketing (Railroad, Airline). Governmental. | `#0..#255` interpreted as ISO-8859-1 | up to 3823 numeric or 3067 alphabetic characters or 1914 bytes of data | http://en.wikipedia.org/wiki/Aztec_Code |
142+| [[File:Tbarcodeaztecrune.png]] `TBarcodeAztecRune` | Aztec Rune | special | `'0'..'9'` | up to 3 (8-bit value `0..255`) | http://en.wikipedia.org/wiki/Aztec_Code#Encoding |
143+| [[File:Tbarcodedatamatrix.png]] `TBarcodeDatamatrix` | Data Matrix | Direct part marking | UTF-8 | up to 2335 alphanumeric characters, 3116 numbers, or 1556 bytes of binary data. | https://en.wikipedia.org/wiki/Data_Matrix |
144+| [[File:Tbarcodeqr.png]] `TBarcodeQR` | QR Code | Advertisement, web links, and many more | UTF-8 | up to 7089 numeric digits, 4296 alphanumeric characters or 2953 bytes of data | https://en.wikipedia.org/wiki/QR_code |
145+| [[File:Tbarcodemicroqr.png]] `TBarcodeMicroQR` | Micro QR Code | Like QR Code, preferred when less space is available | UTF-8 | up to 35 | http://en.wikipedia.org/wiki/Qr_code#Micro_QR_code |
146+| [[File:Tbarcodemaxicode.png]] `TBarcodeMaxicode` | Maxicode | Tracking and managing the shipment of packages | `#0..#255` interpreted as ISO-8859-1 | about 90 characters (plus "primary message" needed in property `Primary` for mode 2 and 3) | https://en.wikipedia.org/wiki/MaxiCode |
192147
193148#### Special properties of some components
194149
195150- `TBarcodePlessey`
196151 - `CheckChar: TPlesseyCheckChar` - determines the checksum digit(s) added to the MSI/Plessey symbol (used only when `BarcodeType = bctMSIPlessey`):
197152 - `pcOneMod10`: adds one check digit calculated by a *mod 10* algorithm
198153 - `pcTwoMod10`: adds two check digits, both calculated by a *mod 10* algorithm
199154 - `pcOneMod11`: adds one check digit calculated by a *mod 11* algorithm
200155 - `pcOneMod10Mod11`: add two check digits, the first one calculated by a *mod 10*, the second one calculated by a *mod 11* algorithm.
201156- `TBarcodeQR`
202157 - `ECCLevel: TBarcodeQR_ECCLevel` - determines the level of error correction (used also by `TBarcodeMicroQR`):
203158 - `eBarcodeQR_ECCLevel_Auto`: selects one of the other options depending on data length
204159 - `eBarcodeQR_ECCLevel_L`: Error correction capacity: approx 20% of symbol, recovery capacity: approx 7%
205160 - `eBarcodeQR_ECCLevel_M`: Error correction capacity: approx 37% of symbol, recovery capacity: approx 15%
206161 - `eBarcodeQR_ECCLevel_Q`: Error correction capacity: approx 55% of symbol, recovery capacity: approx 25%
207162 - `eBarcodeQR_ECCLevel_H`: Error correction capacity: approx 65% of symbol, recovery capacity: approx 30%
208163- `TBarcodeMaxicode`
209164 - `Mode: TBarcodeMaxicodeMode` - message mode
210165 - `mcmAuto`: tries to determine the mode from the type of the data
211166 - `mcmMode2`: In addition to the `Text` ("secondary message") also a 15-digit "primary message" must be provided in the property `Primary`. It consists of 9 numerical digits for the US-domestic post-code (property `PostCode: String`), 3 numeric digits for the country code (ISO 3166, property `CountryCode: Integer`) and 3 numeric digits for the service code (property `ServiceCode: Integer`).
212167 - `mcmMode3`: In addition to the `Text` ("secondary message") also a 15-digit "primary message" must be provided in the property `Primary`. It consists of 6 alphanumeric digits for the international post-code (property `PostCode: String`), 3 numeric digits for the country code (ISO 3166, property `CountryCode: Integer`) and 3 numeric digits for the service code (property `ServiceCode: Integer`).
213168 - `mcmMode4`: No `Primary` needed.
214169 - `mcmMode5`: No `Primary` needed.
215170 - `mcmMode6`: No `Primary` needed.
216171 - `Primary: String` - see `TBarcodeMaxicode.Mode`
217172 - `PostCode: String` - see `TBarcodeMaxicode.Mode`
218173 - `CountryCode: String` - see `TBarcodeMaxicode.Mode`
219174 - `ServiceCode: String` - see `TBarcodeMaxicode.Mode`
220175
221176### Demo application
222177
223178A demo project is contained in the LazBarcodes installation. It allows to generate barcode from all barcode types supported. Please note that - since the requirements on length and characters changes from type to type - sometimes error messages are displayed; in this case, click on the "Sample text" button to use a predefined sample text for the selected barcode type. A screenshot is displayed at the top of this page.
224179
225180## Final notes
226181
227182If you need the generation of another barcode and it is present in Zint, please ask for it in the [Lazarus forum](http://forum.lazarus.freepascal.org/) or mailing lists.
228183
229184---
230185*From the Free Pascal wiki, page "LazBarcodes", as it stood on 2023-09-17 after a change by Wp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
231186Category: Components
232187Category: Lazarus-CCR

Back to history