| Tag Link | [PDF_Barcode] | Category | |
|---|---|---|---|
| Type | Substitution | Source Available | Yes |
| Support | Preferred | Version | 6.0 |
| Change | Unchanged | Data Source | Any |
| Output Type | PDF_Barcode | Security | File |
| Implementation | LJAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
[PDF_Barcode] creates a barcode image to be placed in a [PDF_Doc] variable. Requires a
[Var:'MyBarcode'=(PDF_Barcode:
| Required Parameters | |
|---|---|
| -Type | Specifies the type of barcode to be created. Available parameters are CODE39, CODE39_EX, CODE128, CODE128_UCC, CODE128_RAW, EAN8, EAN13, POSTNET, and PLANET. Defaults to CODE39 if not specified. |
| -Code | Specifies the numeric or alphanumeric barcode data. Some formats require specific data strings: EAN8 requires an 8 |
| Optional Parameters | |
| -Color | Specifies the color of the bars in the barcode. Requires a [PDF_Color] object or a hex string color value. Defaults to '#000000' if not specified. |
| -Supplemental | Specifies any supplemental 2 or 5 digit barcode data. Used for EAN barcodes only (e.g. 2 |
| -GenerateChecksum | Generates a checksum to be appended to the barcode. |
| -ShowCode39StartStop | Displays start and stop characters (*) in the text for Code 39 barcodes. |
| -ShowEANGuardBars | Show the guard bars for EAN barcodes. |
| -BarHeight | Sets the height of the bars in points. Requires a decimal value. |
| -BarWidth | Sets the width of the bars in points. Requires a decimal value. |
| -BaseLine | Sets the text baseline in points. Requires a decimal value. |
| -ShowChecksum | Keyword parameter sets the generated checksum to be shown in the text. |
| -Font | Sets the text font. Requires a [PDF_Font] variable. |
| -BarMultiplier | Sets the bar multiplier for wide bars. Requires a decimal value. |
| -TextSize | Sets the size of the text. Requires a decimal value. |
To define a barcode for a PDF document:
The example below shows how to create an EAN8 barcode with the code "12345678" for use in a PDF document. The variable $MyBarcode can be added within a [PDF_Doc] variable using the [PDF_Doc->Add] tag.
[Var:'MyBarcode'=(PDF_Barcode: