Examples of all supported symbologies
Hello World! as Code 128
Hello World!
Interleaved 2 of 5
0123456789
ITF-14
1 54 00141 28876
Code 39
0123456789
Code 128
0123456789
EAN-128
(01)01234567890128(10)0123456789(15)041220
Codabar
0123456789
UPC-A
01234 56789
UPC-E
0 123413
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]
EAN-13 (with supplemental)
12
2 001234 567893
EAN-8
2012 3451
POSTNET
Royal Mail Customer Barcode
USPS Intelligent Mail Barcode (4-State Customer Barcode) PDF417
DataMatrix DataMatrix DataMatrix
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]
Real-life examples
The serial number of my USB 2.0 hub. (Code 128)
O5-2C0272AD0126
A book: Code Complete by Steve McConnell, ISBN 1-55615-484-4 (EAN-13)
9 781556 154843
The german "Java Magazin" issue 4.03 (EAN-13 with supplemental)
4 194586 705506
04
Nutella chocolate spread (EAN-8)
8013 5463
Swiss Post: PostPac Priority marker (Code 128) Swiss Post: PostPac tracking number (Code 128)
99.00.805300.05275708
The special reference symbol from ISO/IEC 16022:2000(E) (Annexe T.2) (DataMatrix)
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]
Feature demonstrations
EAN-13 (default)
2 001234 567893
EAN-13 (human-readable message on top)
2 001234 567893
EAN-13 (no human-readable message)
EAN-13 (height to 5mm) EAN-13 (without quiet zone)
2 001234 567893
001234 567893
EAN-13 (with a bigger quiet zone)
2 001234 567893
Ean 128 (with extention for USPS Confirmation Service. I do not realy know what this is good for but according to the specification it should be usable)
420123459101123456789123456780
Code 39 (default)
0123456789
Code 39 (with start/stop characters displayed in the human-readable message, plus added check character)
*01234567892*
Code 39 (with a wide factor of 4)
0123456789
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]
Code 39 (with a module-width of 0.4mm)
0123456789
Code 39 (with an interchar-gap-width of 8mw [8 times a module width])
0123456789
Code 39 (with the extended character set enabled)
Hello *World*!
Interleaved 2 of 5 (default)
0123456789
Interleaved 2 of 5 (checksum mode: add)
0123456789
UPC-E (default)
0 425261
UPC-E (the same as above but using a UPC-A message: 04210000526)
0 425261 4
UPC-E (with 2-character supplemental. Message: 04210000526+34)
0 425261 4
34
UPC-E (with 5-character supplemental. Message: 04210000526+56789)
0 425261 4
56789
Postnet (default)
Postnet (baseline-alignment set to "top")
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]
Postnet (playing with module-width, interchar-gapwidth, tall-bar-height, short-bar-height and humanreadable) Royal Mail Customer Barcode (default)
80122-2014-01
Royal Mail Customer Barcode (playing with interchar-gap-width, ascender-height, track-height)
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]
Character set demonstration
Interleaved 2 of 5: 0-9
0123456789
Code 39: 0-9, [space] and "-.$/+%"
0123456789 -.$/+%
Code 39: A-Z
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Code 128: 0-9
0123456789
Code 128: A-Z
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Code 128: a-z
abcdefghijklmnopqrstuvwxyz
Codabar: 0-9 and "+-/$.:"
0123456789+-/$.:
UPC-A: 0-9 (11 characters, checksum will be calculated)
0 01234 56789 5
EAN-13: 0-9 (12 characters, checksum will be calculated)
2 001234 567893
Postnet (dash is a valid character but won't be painted)
01234-56789
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]
Royal Mail Customer Barcode: 0-9 and A-Z (parentheses and brackets are valid but will be filtered and automatically used as start/stop characters)
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]
Barcode Rotation
A normal barcode:
4 006408 551379
The same barcode, but rotated this time using SVG:
4 0 0 6 4 0 8 5 5 1 3 7 9
This PDF was generated using Barcode4J ([Link] and Apache FOP ([Link]