Generate Code 16K Barcodes in Java

Overview

Code16K is a stacked multiple-row symbology that may include at most 16 rows. Each row in a barcode has a fixed length and can encode up to five symbols. It supports the data encoding structure that is similar to that of Code 128 and encodes the same character set with the same data density. Code16K comprises checksum digits computed in two last characters for the whole barcode. However, no separate checksum controls are supported for a single row. A Code16K can encode at most 77 symbols or 154 numerical digits. Currently, this symbology is considered from the historical viewpoint and is rarely applied to real-life business tasks.

Barcode Height Settings

In Aspose.BarCode for Java, it is possible to modify the row height of a Code16K barcode through the setAspectRatio method of class Code16KParameters. AspectRatio is determined as a relative coefficient to the value of XDimension. In the Code16K standard, the value of AspectRatio should be set larger than 8.

The following Code16K barcodes have been created using various barcode height settings.

Aspect Ratio Is Set to 10 Is Set to 20

Quiet Zone Settings

Aspose.BarCode for Java allows modifying the size of quiet zones in Code16K barcodes by calling setQuietZoneLeftCoef and setQuietZoneRightCoef methods of class Code16KParameters. Quiet zone coefficients are determined relatively to the value of XDimension.

The following Code16K barcodes have been generated using various quiet zone settings.

Quiet Zone Coefficient Is Set to 10 Is Set to 20