XFA Specification
Chapter 15, Template Specification
Template Reference
435
Note that there is no corresponding minimum length restriction. Some barcode formats have a fixed
number of symbols and must be filled out with padding characters. Others allow a variable number of
symbols and must terminate after the last symbol.
The dataPrep property
(Recommended for 2-d barcodes only.) Preprocessing applied to the data which is written out in the
barcode. This does not affect the data in the DOMs, nor does it affect what the user sees when the field has
focus in interactive contexts.
none
Use the data just as supplied. This is the default.
flateCompress
Write out a header consisting of a byte with decimal value 129 (0x81 hex) followed by another
byte with decimal value 1. Then write the data compressed using the Flate algorithm, as defined
by the Internet Engineering Task Force (IETF) in [
RFC 1951].
No predictor algorithm is used. It is an
error to specify this option with a
type
that cannot encode arbitrary binary data.
The dataRowCount property
(2-d barcodes only.) Optional number of data rows to encode for supported barcodes.
The template may supply this property in conjunction with
dataColumnCount
in order to specify a fixed
row and column barcode. Otherwise the XFA processor uses
rowColumnRatio
plus the actual length of
the data being inserted to determine the row and column count. The dataRowCount property must not be
present unless the
dataColumnCount
property is also present. When these properties are used the size
of the barcode is fixed. If the supplied data does not fill the barcode the remaining cells are padded out
with padding symbols.
The encrypt property
An element that controls encryption of barcode data.
For more information see "The
The endChar property
Optional ending control character to append to barcode data. This property is ignored by the XFA
processor if the barcode pattern does not allow it.
The errorCorrectionLevel property
(2-d barcodes only.) Optional error correction level to apply to supported barcodes. For PDF417 the valid
values are integers in the range 0 through 8, inclusive.
For barcode types that accept this property the XFA processor ignores the
checksum
property.
The extras property
An enclosure around one or more sets of custom properties. The content of this element may be used by
custom applications.
For more information see "The