Skip to content

Pdf417Barcode.CompactionMode Property

Gets or sets the data compaction mode for this barcode.

C#
public Pdf417DataCompactionMode CompactionMode { get; set; }

Property Value

Pdf417DataCompactionMode

A Pdf417DataCompactionMode enumeration member specifying the data compaction mode used in this barcode.

Remarks

The Text compaction mode provides a 2:1 compaction ratio when using only ASCII characters from 0x20 to 0x7F. The Numeric compaction mode provides a 2.93:1 compaction ratio when using only digits (0x30 to 0x39). Byte compaction mode provides a 1.2:1 compaction ratio when using any 8bit character.