Questions tagged [barcode4j]

Barcode4j is a library to create barcodes with Java.

Barcode4J is a flexible generator for barcodes written in Java. Under the Apache License, version 2.0

1D barcode implementations:

  • 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)

2D barcode implementations:

  • PDF 417 (ISO/IEC 15438:2001(E))
  • DataMatrix (ISO/IEC 16022:2000(E))
  • QR Code (ISO/IEC 18004:2006(E))

See also the official homepage.

45 questions
6
votes
2 answers

How to fix java.lang.NoClassDefFoundError from barcode4j-2.1.jar on jasperReports?

I'm trying to print barcode using Java (Web application) and Using Jaspoersoft iReport Designer 4.5.0 Here is my Java code : public String onBtnPrintClick() throws JRException, IOException { Integer pos_number =…
Ninjin
  • 161
  • 2
  • 3
  • 13
6
votes
1 answer

How to center align barcode using jasperreports and barcode4j

I use iReport 5.5.0. How to center align a barcode component? Relevant fragment of my jrxml is below.
ThomasEdwin
  • 2,035
  • 1
  • 24
  • 36
4
votes
1 answer

JasperReports with Barcode Code128 (Barcode4J): PNG differs from PDF

I'm printing a label with following number "1000049722ABCD2F" as a barcode, using a Jasper-template and the barcode-element "Code128" from Barcode4J. Printed as a PDF, the barcode is perfect and scannable. Printing same barcode as a PNG-file, the…
Richard
  • 41
  • 3
3
votes
2 answers

barcode human readable placing parallel to barcode

Here is the code to generate a barcode based on the Id passed, the barcode is generated fine: @Override public byte[] generateBarcodeForId(String Id) throws VisitMastException{ BarcodeUtil util = BarcodeUtil.getInstance(); …
user630209
  • 1,123
  • 4
  • 42
  • 93
3
votes
1 answer

Getting barcode4j working with Docmosis Tornado

My requirement is to have a Word.doc file with barcoding embedded, and then turn that into a PDF. I'm trying docmosis for this project, and its worked so far - except when I try to generate the pdf with barcoding enabled. I'm getting the following…
Tim Kuehn
  • 3,201
  • 1
  • 17
  • 23
3
votes
2 answers

Issue with generating EAN128 code using Barcode4j for multiple sets of AI and data

I'm using barcode4j to generate EAN128 barcode. The barcode I need to generate contains multiple sets of Application Identifiers and data, for example: (410)000061000034(412)000001101593 The data length for both 410 and 412 is 13 characters. I'm…
3
votes
1 answer

Barcode4j + qr not working

I have problems trying to generate an image with qr code via barcode4j library. I've read the following guide but that didn't work out. So here is my code: pom.xml
Kirill Smirnov
  • 1,452
  • 2
  • 21
  • 28
3
votes
1 answer

Apache FOP 1.1 QRCodes with zxing

OK I am having an issue producing QR Codes in FOP 1.1 using barcode4j-2.1 and zxing-0.1.2. I currently have a FOP 1.0 implementation working correctly, by adding true to the fop configuration file. barcode4j…
karnd01
  • 53
  • 1
  • 6
2
votes
1 answer

org.krysalis.barcode4j.BarcodeException: No barcode configuration element not found

I want to generate a barcode in svg from a barcode xml. I have followed this: http://barcode4j.sourceforge.net/2.1/barcode-xml.html The input should be a configuration object created out of an xml file. The "cfgFile"[barcode.xml] file is of the…
Nammu
  • 61
  • 7
2
votes
0 answers

zxing invalid barcodes other than qr

I am using the simple code below and as titled. How can I print simple Code39 or UPC? Even code39 of the same data prints unreadable bars that are different per data but do not scan.
cp.
  • 1,241
  • 5
  • 15
  • 26
2
votes
2 answers

Barcode4j - Generate check digit in an EAN13 barcode

When yo generate a barcode with Barcode4j as an image, you could obtain the human readable text, too, for instance: EAN13 barcode example In this picture we can see that the human readable text is: 1000000012026 In this example the barcode has been…
2
votes
1 answer

Barcode4J on Android ( missing BufferedImage support )

I have been trying to use Barcode4J on Android but I can not seem to get BufferedImage class and I am not sure how I am suppose to replace this class with anything from Android.graphic.* which does not seem to have something similar. Also the…
2
votes
0 answers

How to change the barcode text font to a bold font using barcode4J?

My code is successfully generating the barcode image. But my problem is that the barcode text font is too thin and i need to increase the font weight. Here is a small snippet from my code where i set the font. EAN13Bean bean = new…
user2522497
  • 137
  • 2
  • 15
2
votes
2 answers

JasperReports Barcode Generation With Barcode4j - Library Dependencies

I have been searching which libraries are necessary to generate a barcode containing report, using JasperReports (version 4.6.0) and barcode4j, in a simple setting/scenario (just have a report design, fill the report, export to pdf) so nothing…
acostache
  • 2,177
  • 7
  • 23
  • 48
1
vote
2 answers

Generate GS1-128 Barcode using Barcode4j library in Java Swing

I have a string like (01)8638634367382(15)230316(3103)000998(10)45456465604 that I want to do it as barcode png using barcode4j lib in java. I use this code // Create the barcode bean Code128Bean barcode = new Code128Bean(); //…
unknownDev
  • 11
  • 4
1
2 3