Skip to main content

PDF417ErrorCorrectionLevel Enum

Lists values that indicate the error correction level for the PDF417 barcode.

Declaration

public enum PDF417ErrorCorrectionLevel extends Enum<PDF417ErrorCorrectionLevel> implements IIntEnum

Members

Name Description
LEVEL_0

The zero error correction level. Minimum redundancy. Uses 2 EC codewords. Suited for very controlled environments with excellent print/scan quality and short label life.

LEVEL_1

The first error correction level. Low redundancy. Uses 4 EC codewords. Suitable for controlled environments (good printers, short-life labels).

LEVEL_2

The second error correction level. Low redundancy. Uses 8 EC codewords. Suitable for controlled environments (good printers, short-life labels).

LEVEL_3

The third error correction level. Medium redundancy. Uses 16 EC codewords. Suitable for general industrial, warehousing, ticketing, and transport labels.

LEVEL_4

The fourth error correction level. Medium redundancy. Uses 32 EC codewords. Suitable for general industrial, warehousing, ticketing, and transport labels.

LEVEL_5

The fifth error correction level. Medium-high redundancy. Uses 64 EC codewords. Suitable for harsh conditions: rough handling, frequent scanning, lower‑quality printers, outdoor exposure, or labels that may get partially torn or stained.

LEVEL_6

The sixth error correction level. High redundancy. Uses 128 EC codewords. Suitable for very harsh conditions: extreme handling, very frequent scanning, low‑quality printers, outdoor exposure, or labels that may get significantly torn or stained.

LEVEL_7

The seventh error correction level. Very high redundancy. Uses 256 EC codewords. Used when labels may be severely damaged but still need to decode (e.g., long‑term asset tags in dirty or abrasive environments, or where reprinting is costly/impossible).

LEVEL_8

The eighth error correction level. Maximum redundancy. Uses 512 EC codewords. Used in extreme conditions where labels are likely to be heavily damaged, such as long-term outdoor exposure, extreme handling, or very low-quality printing.

fromValue(int value)

Returns the PDF417ErrorCorrectionLevel enumeration constant with the specified integer value.

getName()

Returns the name of the PDF417ErrorCorrectionLevel enumeration constant.

getValue()

Returns the integer value associated with the PDF417ErrorCorrectionLevel enumeration constant.

toString()

Returns the string representation of the PDF417ErrorCorrectionLevel enumeration constant.

valueOf(String name)

Returns the PDF417ErrorCorrectionLevel enumeration constant with the specified name.

values()

Returns an array of all PDF417ErrorCorrectionLevel enumeration constants.

Remarks

The following code snippet creates a PDF417 barcode and customizes its encoding parameters with the Fluent API:

import com.devexpress.drawing.*;
import com.devexpress.docs.barcode.*;
import com.devexpress.system.drawing.*;
import com.devexpress.docs.Padding;

import java.io.*;
import java.nio.file.*;

public class Main {
    public static void main(String[] args) throws Exception {

        PDF417Options options = PDF417OptionsBuilder.create()
            .withColumns(3)
            .withTruncateSymbol(false)
            .withErrorCorrectionLevel(PDF417ErrorCorrectionLevel.LEVEL_2)
            .withCompactionMode(PDF417CompactionMode.TEXT)
            .withPadding(new Padding(10))
            .withShowText(true)
            .withWidth(600)
            .withHeight(200)
            .build();

        Path outputDir = Path.of("output");
        Files.createDirectories(outputDir);

        try (FileOutputStream fileStream = new FileOutputStream(
                outputDir.resolve("pdf417 .png").toFile());
                BarcodeGenerator barcodeGenerator = new BarcodeGenerator(options)) {
                    barcodeGenerator.export(
                            "PDF417 DEMO 1234567890",
                            fileStream,
                            DXImageFormat.getPng());
        }
    }
}

Refer to the following help topic for additional information: PDF417.

Implements

com.devexpress.java.enums.IIntEnum

Inherited Members

java.lang.Enum.<T>valueOf(java.lang.Class<T>,java.lang.String)
java.lang.Enum.clone()
java.lang.Enum.compareTo(E)
java.lang.Enum.describeConstable()
java.lang.Enum.equals(java.lang.Object)
java.lang.Enum.finalize()
java.lang.Enum.getDeclaringClass()
java.lang.Enum.hashCode()
java.lang.Enum.name()
java.lang.Enum.ordinal()
java.lang.Enum.toString()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
java.lang.Enum
PDF417ErrorCorrectionLevel