The barcode element creates a barcode.
Width and height take precedence over scale. Width and height must be greater than 0 to take effect.
Syntax:
Element | Attributes | Value | Notes for Element/Attribute/Value |
|---|---|---|---|
barcode | x1 | integer | Default is 0. |
y1 | integer | Default is 0. | |
width | integer | Default is 0. | |
height | integer | Default is 0. | |
type | CODE39 | ||
CODE39EXT | |||
CODE128 | Default. | ||
CODE128UCC | |||
EAN8 | |||
EAN13 | |||
CODABAR | |||
POSTNET | |||
PLANET | |||
INTER25 | |||
QRCODE | Java JRE 6.0 or higher is required. | ||
value | string | Barcode value. | |
supplement | string | Supplement value. | |
scale | integer | Default is 110. | |
rotation | integer | Default is 0. | |
align. | left | ||
center | Default. | ||
right | |||
start | string | Default is A. | |
stop | string | Default is B. | |
start-stop | boolean | Default is true. | |
alt-text | string | Barcode alternative text. |
Example
<barcode x1="20" y1="700" type="CODE39" value="12345ABCD"/>
<barcode x1="20" y1="600" type="CODE39EXT" value="12345" alt-text="some text"/>
<barcode x1="20" y1="500" type="CODE128" value="12345aBCD"/>
<barcode x1="20" y1="400" type="CODE128UCC" value="12345aBCD"/>
<barcode x1="20" y1="300" type="EAN8" value="1234567"/>
<barcode x1="20" y1="200" type="EAN13" value="641718311430"/>
<barcode x1="20" y1="100" width="200" height="50" type="EAN13" value="641718311430" supplement="54995"/>
<barcode x1="20" y1="700" type="CODABAR" value="4015638721939"/>
<barcode x1="20" y1="600" type="POSTNET" value="123456789"/>
<barcode x1="20" y1="500" type="PLANET" value="123456789"/>
<barcode x1="20" y1="400" type="INTER25" value="41-1200076041-001"/>
<barcode x1="20" y1="300" type="INTER25" value="411200076041001"/>
<barcode x1="20" y1="600" type="QRCODE" width="100" height="100" value="SOME TEXT"/>