XFA Specification
Chapter 15, Template Specification
Template Reference
432
The barcode element
An element that represents a barcode.
<barcode
Properties:
charEncoding="UTF-8
|
cdata"
checksum="none
|
auto
|
1mod10
|
2mod10
|
1mod10_1mod11"
dataColumnCount="cdata"
dataLength="cdata"
dataPrep="none
|
flateCompress"
dataRowCount="cdata"
endChar="cdata"
errorCorrectionLevel="0
|
cdata"
id="xml-id"
moduleHeight="5mm
|
measurement"
moduleWidth="0.25mm
|
measurement"
printCheckDigit="0
|
1"
rowColumnRatio="cdata"
startChar="cdata"
textLocation="below
|
none
|
above
|
aboveEmbedded
|
belowEmbedded"
truncate="0
|
1"
type="cdata"
use="cdata"
usehref="cdata"
wideNarrowRatio="3:1
|
cdata"
>
<encrypt>
[0..1]
<extras>
[0..1]
</barcode>
The barcode element is used within the following other elements:
proto ui
The barcode element supplies the information required to display a barcode. This includes the type of the
barcode and a set of options which varies from one type of barcode to another.
There are many types of barcodes. An XFA application is not required to support any particular set of
barcodes. Furthermore, the set of supported barcodes may vary depending on the display device because
some printers have built-in support for particular barcodes. This is known as a
hardware barcode.
A
barcode may also be drawn stroke by stroke by the XFA application itself; this is known as a
software
barcode.
When displaying on glass, which is not accessible to barcode readers, an XFA application may also
revert to displaying just a placeholder rather than an accurate barcode.
Barcodes are complicated. For each type of barcode there are usually two separate specifications, one for
the barcode itself and one for the barcode's placement in relation to the physical page and to surrounding
printed matter. The creator of the template is responsible for ensuring that the barcode is placed correctly
upon the page. The XFA application is responsible for correctly rendering the barcode using the user data.
The user data must be compatible with the barcode, that is, it must conform to the allowed character set
and string length.
Home Index Bookmark Pages
Pages: Home Index All Pages