User guide
SD/CD Series Card Printers OpenCard Data Format Guide 37
datacard:barRatio Attribute
This attribute specifies the ratio of thickness between a narrow bar and a wide bar for a Code39
bar code. This attribute has no effect on any other built-in bar code. The values supported are:
• datacard:barRatio=“2to1” (default if no attribute present)
• datacard:barRatio=“3to1”
The final narrow and wide bar thickness for Code39 is determined by a combination of the
datacard:barRatio and datacard:barDensity values as the datacard:barDensity attribute sets the
narrow bar width.
datacard:barDensity Attribute
This attribute effectively sets the narrow bar width for bar codes CODE39, CODE128 and
Interleaved 2 of 5 only and has no effect on the generation of bar codes UPCA, EAN8 and EAN13.
Bar code
symbology Density value
Narrow bar
width
CODE39 datacard:barDensity=”4.6” 4
datacard:barDensity=”5.76” 4
datacard:barDensity=”6.25” 3
datacard:barDensity=”7.69” 3
CODE128 datacard:barDensity=”narrow” 3
datacard:barDensity=”wide” 4
Interleaved 2 of 5 datacard:barDensity=”narrow” 2
datacard:barDensity=”medium” 3
datacard:barDensity=”wide” 4
datacard:barDensity=”extrawide” 5