Skip to main content

PDF417Symbology.CompactionMode Property

Gets or sets whether text or binary mode should be used to encode the barcode’s data.

Namespace: DevExpress.WinUI.Controls

Assembly: DevExpress.WinUI.BarCode.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(PDF417CompactionMode.Text, Handler = "CompactionModePropertyChanged")]
[TypeConverter(typeof(XamlEnumTypeConverter<PDF417CompactionMode>))]
public PDF417CompactionMode CompactionMode { get; set; }

Property Value

Type Description
DevExpress.WinUI.Controls.Internal.PDF417CompactionMode

Specifies whether to use to encode the barcode’s data: text or binary.

Remarks

Available values:

Name Description
Binary Specifies that the byte array should be coded into the PDF417 bar code.
Text Specifies that the textual information should be coded into the PDF417 bar code.

If the data encoded in text mode contains invalid characters for PDF417, switch to binary mode to interpret the data as a sequence of bytes and use this sequence to encode the barcode.

Set the barcode’s CompactionMode property to Binary to enable binary mode.

See Also