Tag Definition: barCode
Generated by rlextra version 4.3.0a1
Attributes
Name |
Required? |
Default_Value |
Values |
anchor |
implied |
None |
['n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw', 'c'] |
barFillColor |
implied |
None |
|
barHeight |
implied |
None |
|
barStrokeColor |
implied |
None |
|
barStrokeWidth |
implied |
None |
|
barWidth |
implied |
None |
|
bearerBox |
implied |
None |
|
bearers |
implied |
None |
|
bgColor |
implied |
None |
|
border |
implied |
None |
|
cellSize |
implied |
None |
|
checksum |
implied |
None |
['-1', '0', '1', '2'] |
code |
required |
None |
['Codabar', 'Code11', 'Code128', 'Code128Auto', 'EAN13', 'EAN5', 'EAN8', 'ECC200DataMatrix', 'Extended39', 'Extended93', 'FIM', 'I2of5', 'ISBN', 'MSI', 'POSTNET', 'QR', 'Standard39', 'Standard93', 'UPCA', 'USPS_4State', 'DataMatrix'] |
color |
implied |
None |
|
encoding |
implied |
None |
['Ascii', 'AutoBest', 'AutoFast', 'Base256', 'C40', 'Edifact', 'Text', 'X12'] |
fontName |
implied |
None |
|
fontSize |
implied |
None |
|
gap |
implied |
None |
|
heightSize |
implied |
None |
|
humanReadable |
implied |
None |
['yes', 'no', '0', '1'] |
lquiet |
implied |
None |
['yes', 'no', '0', '1'] |
pitch |
implied |
None |
|
quiet |
implied |
None |
['yes', 'no', '0', '1'] |
ratio |
implied |
None |
|
routing |
implied |
None |
|
rquiet |
implied |
None |
['yes', 'no', '0', '1'] |
size |
implied |
None |
['RectAuto', 'SquareAuto', 'ShapeAuto', '10x10', '12x12', '14x14', '16x16', '18x18', '20x20', '22x22', '24x24', '26x26', '32x32', '36x36', '40x40', '44x44', '48x48', '52x52', '64x64', '72x72', '80x80', '88x88', '96x96', '104x104', '120x120', '132x132', '144x144', '8x18', '8x32', '12x26', '12x36', '16x36', '16x48'] |
spaceHeight |
implied |
None |
|
spaceWidth |
implied |
None |
|
stop |
implied |
None |
['yes', 'no', '0', '1'] |
textColor |
implied |
None |
|
tracking |
implied |
None |
|
value |
implied |
None |
|
widthSize |
implied |
None |
|
x |
required |
None |
|
y |
required |
None |
|
Can contain |
Purpose
Insert a barcode graphic into our document at the x,y co-ordinates provided.
Check out our docs page on how this works in the open source for reference.
Example usage
Barcode types you can choose from are mentioned in the specification further up.
<template>
<pageTemplate id="Page 1" pageSize="(595, 842)">
<pageGraphics>
<barCode code="Codabar" x="50" y="800" barWidth="1" barHeight="20">123456</barCode>
<barCode code="Code11" x="50" y="750" barWidth="1" barHeight="20">123456</barCode>
<barCode code="Code128" x="50" y="700" barWidth="1" barHeight="20">123456</barCode>
<barCode code="Standard39" x="50" y="650" barWidth="1" barHeight="20">123456</barCode>
<barCode code="Standard93" x="50" y="600" barWidth="1" barHeight="20">123456</barCode>
<barCode code="I2of5" x="50" y="550" barWidth="1" barHeight="20">123456</barCode>
<barCode code="Extended39" x="50" y="500" barWidth="1" barHeight="20">123456</barCode>
<barCode code="Extended93" x="50" y="450" barWidth="1" barHeight="20">123456</barCode>
<barCode code="MSI" x="50" y="400" barWidth="1" barHeight="20">123456</barCode>
<barCode code="FIM" x="50" y="350" barWidth="2" barHeight="20">A</barCode>
<barCode code="POSTNET" x="50" y="300" barWidth="1" barHeight="20">123456</barCode>
<barCode code="UPCA" x="50" y="250" barWidth="1" barHeight="20">0000000</barCode>
<barCode code="USPS_4State" x="50" y="200" barWidth="1" barHeight="20">01234567094987654321</barCode>
<barCode code="EAN8" x="50" y="150" barWidth="2" barHeight="20">0000000</barCode>
</pageGraphics>
<frame id="Frame 1" x1="30" y1="30" width="535" height="782"/>
</pageTemplate>
</template>
Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.
Example of nesting path from the parent tags to the current tag
<document> ➔ <template> ➔ <pageTemplate> ➔ <pageGraphics> ➔ <barCode>