Barcode-Lib4J (Open Source) – Updates und Features
Version 3.1.1 – Nov 24, 2025
Export to raster image formats: Added a defensive check for TIFF ImageWriter availability, and implemented proper
resource cleanup for the ImageOutputStream along with explicit ImageWriter disposal.
Version 3.1.0 – Oct 30, 2025
Zero dependencies: Library is now completely self-contained with no external dependencies
PDF generation: Creates PDFs independently - OpenPDF is no longer required
EPS/PDF output: Reduced file sizes by ~13% using native rectangle commands instead of rectangular paths
Enum "BarcodeType": Added six "supports...()" methods to query barcode type properties without the need to create an instance
Enum "ImageTransform": Added "getRotationDegrees()" method to retrieve the rotation angle in degrees
Version 3.0.0 – Oct 6, 2025
Comprehensive migration from primitive types to enums
Enhanced parameter validation in constructors and methods
Classes removed or renamed throughout the packages
Javadoc documentation thoroughly reworked and updated
Minimum Java version increased from Java 9 to Java 11
OpenPDF compatibility: Added support for version 3.0.0+
Version 2.0.2 – Aug 18, 2025
GS1 Barcodes: Extended validation beyond the existing date/time checks for Application Identifiers 11 to 17 to now include format and plausibility validation for Application Identifiers 7003, 7006, and 8008.
OpenPDF Dependency: The library can now be compiled and used completely without OpenPDF - the dependency is fully optional, including at compile time.
Version 2.0.1 – Sep 11, 2024
Detailed BarcodeException messages for one-dimensional barcodes that provide more specific
reasons why a barcode could not be created.
German localization for all exception messages.
Stricter validation of date values in the format YYMMDD for GS1 barcodes: The value must now
not only consist of digits but also refer to a valid date.