Skip to content

Barcode128 class has wrong set length for AI (11) #1450

@EmpireQuerity

Description

@EmpireQuerity

In openpdf-core/src/main/java/org/openpdf/text/pdf/Barcode128.java is wrong length value for AI(11).

Line 247 ais.put(11, 9);

the correct value is 8, then ais.put(11, 8);

This is using for GS1-128 code specification.
AI (11) = Production date, format YYMMDD (6 digits)
→ should be correct: 2 (AI) + 6 (data) = 8
like AI length for 12-17

Documentation GS1 code here on page 155.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions