Skip to content

Tag Definition: barCode

Generated by rlextra version 3.6.13

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
(#PCDATA | name | getName | pageNumber | evalString | loop_i | switch_i | assign_i | if_i | expr)*

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="EAN8" x="30" y="30" barWidth="3" barHeight="50">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>