dataPrep

Defines preprocessing that is applied to the data written in the barcode.

It does not affect the data in the object models, nor does it affect what the user sees when the field has focus in interactive contexts.

Note: Recommended for 2D barcodes only.

Syntax

Reference_Syntax.dataPrep = "none | flateCompress"

Values

Type

Values

String

  • none (default)

  • flateCompress

Uses the data as supplied.

  • flateCompress

Writes a header consisting of a byte with decimal value 257, followed by another byte with decimal value 1. It then writes the data compressed with the Flate algorithm, as defined by the Internet Engineering Task Force (IETF) in RFC1951. It does not use a predictor algorithm.

Do not specify this option with a type that cannot encode arbitrary binary data.

Applies to

Model

Object

Form Model

barcode

Version

XFA 2.1

Examples

JavaScript

Code11BarCode1.resolveNode("ui.#barcode").dataPrep = "flateCompress";

FormCalc

Code11BarCode1.ui.#barcode.dataPrep = "flateCompress"

// Ethnio survey code removed