I. Overview
Zxing can be recommended for third-party libraries such as barcode4j or zxing.
BARCODE4J Profile Link: http://barcode4j.sourceforge.net/
Zxing Profile Link: https://github.com/zxing/zxing
Second, barcode4j
Key code:
New Datamatrixbean (); Final int dpi = += "Image/png"newnewfalse, 0
The supported barcode formats are:
- Interleaved 2 of 5
- ITF-14
- Code 39
- Code 128
- EAN-128, gs1-128 (based on Code 128)
- Codabar
- Upc-a and UPC-E (with Supplementals)
- EAN-13 and EAN-8 (with Supplementals)
- POSTNET
- Royal Mail Customer Barcode (four state)
- USPS Intelligent Mail (4-state Customer Barcode)
The supported two-dimensional code formats are:
- PDF 417 (ISO/IEC 15438:2001 (E))
- Datamatrix (ISO/IEC 16022:2000 (E))
- QR Code (ISO/IEC 18004:2006 (E)) (requires ZXing, available from CVS HEAD only)
The output file types are:
- Svg
- EPS (encapsulated PostScript)
- Bitmap images (such as PNG or JPEG)
- Java2d (AWT)
- Text (for testing and debugging only)
Java generates barcode QR code