The
barcode
object supplies the information
required to display a barcode. This information includes the type
of barcode and a set of options that varies from one type of barcode
to another.
Designer can support two types of barcodes: hardware and software.
However, an XFA application is not required to support any particular
set of barcodes. Hardware barcodes are displayed by particular printers.
The set of supported barcodes may vary depending on the display
device, because some printers have built-in support for particular
barcodes. Software barcodes are drawn stroke by stroke by the XFA
application itself. When displaying on a screen, which is not accessible
to barcode readers, an XFA application may also revert to displaying just
a placeholder rather than an accurate barcode.
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 form design is responsible for ensuring that
the barcode is placed correctly on 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.
Properties
Name
|
Description
|
Type
|
Access
|
charEncoding
|
Specifies the character encoding of the
value that is encoded into a barcode.
|
String
|
Read /Write
|
checksum
|
Specifies an algorithm for the checksum
to insert into the barcode.
|
String
|
Read /Write
|
dataColumnCount
|
Specifies an optional number of data columns
to encode for supported barcodes. This property applies to two-dimensional
(2D) barcodes only.
|
String
|
Read /Write
|
dataLength
|
Specifies the maximum number of characters
for this instance of the barcode. This property applies to one-dimensional
barcodes only.
|
String
|
Read /Write
|
dataPrep
|
Defines preprocessing that is applied to
the data written in the barcode.
|
String
|
Read /Write
|
dataRowCount
|
Specifies an optional number of data rows
to encode for supported barcodes. This property applies to 2D barcodes
only.
|
String
|
Read /Write
|
endChar
|
Specifies an optional ending control character
to append to barcode data.
|
String
|
Read /Write
|
errorCorrectionLevel
|
Specifies an optional error correction level
to apply to supported barcodes. This property applies to 2D barcodes
only.
|
String
|
Read /Write
|
moduleHeight
|
Determines the height of a set of bars used
to encode one character of supplied text.
|
String
|
Read /Write
|
moduleWidth
|
Specifies different aspects of a barcode
depending on the class of barcodes being used.
|
String
|
Read /Write
|
printCheckDigit
|
Specifies whether to print the check digits
in the human-readable text.
|
String
|
Read /Write
|
rowColumnRatio
|
An optional ratio of rows to columns for
supported 2D barcodes.
|
String
|
Read /Write
|
startChar
|
Specifies an optional starting control character
to add to the beginning of the barcode data.
|
String
|
Read /Write
|
textLocation
|
Specifies the location of any text associated
with the barcode.
|
String
|
Read /Write
|
truncate
|
Truncates the right edge of the barcode
for supported formats.
|
String
|
Read /Write
|
type
|
Specifies the pattern used by an object.
|
String
|
Read /Write
|
upsMode
|
Represents the mode in a UPS Maxicode barcode.
|
String
|
Read /Write
|
use
|
Invokes a prototype.
|
String
|
Read /Write
|
usehref
|
Invokes an external prototype.
|
String
|
Read /Write
|
wideNarrowRatio
|
Specifies a ratio of wide bar to narrow
bar in supported barcodes.
|
String
|
Read /Write
|
|
|
|