PDF417Generator.CompactionMode Property

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

Namespace: DevExpress.XtraPrinting.BarCode

Assembly: DevExpress.Printing.v20.2.Core.dll


public PDF417CompactionMode CompactionMode { get; set; }

Property Value

Type Default Description


A PDF417CompactionMode enumeration value.

Available values:

Name Description

Specifies that the byte array should be coded into the PDF417 bar code.


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. To specify binary data to encode the barcode, do one of the following:

  • Transform the data into a sequence of bytes and assign the sequence to the barcode's BinaryData property.
  • Assign the data to the barcode's Text property to automatically use UTF-8 to convert the data into a sequence of bytes.
See Also