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
0
votes
2 answers

How to convert barcode generated via barcode4j into base 64 in Java

I am trying to convert barcode image generated via barcode4j but unable to do so. When I use FileOutputStream to generate image in local path its working as expected. but when using ByteArrayOutputStream to convert it into base64 string I am getting…
Aniket
  • 3
  • 1
  • 7
0
votes
1 answer

How to get the Barcode4J FOP Extension to work in OSGi (for PDF generation with barcodes)

Working with JBoss Fuse, I have a Camel-FOP endpoint component that successfully generates PDFs as part of a route. A new requirement is to include dynamic barcode generation in the PDF output. This must run in the OSGi container. While both FOP…
Gerry Mantha
  • 1,068
  • 7
  • 14
0
votes
0 answers

p:barcode images do not scan

I am using primefaces p:barcode tag and while the barcodes are being generated, my scanner has difficulty scanning them. Its pretty simple:
AWagner
  • 21
  • 2
0
votes
1 answer

How to add Code128 Barcode image to existing pdf using pdfbox(1.8.12) with barcode4j library?

I am trying to generate the barcode from barcode4j library(code128bean, other barcode beans) and try to add to the existing pdf. The barcode image is getting created locally using the below code. //Create the barcode bean Code128Bean code128Bean =…
venkata
  • 3
  • 1
  • 3
0
votes
0 answers

Barcode generation error when upgrading to jdk1.6 from 1.5

I had a piece of code which was working in java version 1.5 but when i recently updated the java version to 1.6, the application was generating unscannable barcodes. When compared with previous version, the barcodes were slightly…
Sumit
  • 39
  • 1
  • 5
0
votes
1 answer

Barcode4j generate barcode error

I'm using Barcode4j and FOP to generate a PDF that contains a barcode. It works perfect on my Eclipse local environment, but after deploying to weblogic and accessing the function via web I get the following error: ERROR: 'The first argument to…
0
votes
1 answer

making and storing a barcode image from a barcode URL (Barcode4J)

I'm not very familiar with barcodes or barcode4j. I have a URL of the barcode and need to connect to that URL, stream it in order to make an image from it, then store that image somewhere on the file system. does anyone have experience doing this…
OakvilleWork
  • 2,377
  • 5
  • 25
  • 37
0
votes
2 answers

How to use Barcode4J to get the barcode number?

I am using barcode4j to generate some barcode image, which works fine. But the UI team wanna me to write some service to return the barcode number in String for them for some strange reasons. I can't figure out how to do this. Below is the code…
Seabook
  • 137
  • 3
0
votes
1 answer

How to use apache fop with extensions (f.e. barcode4j) in java applet

I want to have a barcode (Code128) generated during the xsl fop translation. As it is said in the apache fop documentation (and barcode4j docs), if you want to use extension, put it on the classpath. This works fine for a desktop app and an applet…
0
votes
1 answer

Is DataMatrix support UTF8 or ISO-8859-2?

I have problem with Barcode4J and generation DataMatrix with ISO-8859-2 characters in message. Below example use of barcode4j (version 2.1.0) from command line. As You can see when i use message "żaba" i get error Message contains characters outside…
marioosh
  • 27,328
  • 49
  • 143
  • 192
0
votes
1 answer

Formatting EAN8 with zxing/barcode4j

I am trying to generate an EAN8-barcode in java. If tried barcode4j (which is free in contrary to the barcodelib), which gives me really good results. One thing I haven't figured out is to change the width and the height of the barcode in…
noircc
  • 650
  • 10
  • 28
0
votes
2 answers

jasper report - how to add asterisk to barcode numeric output?

I'm created jrxml using iReport and generating barcode using barcode4j. Goal: Output barcode with numeric value which has asterisks. Looks something like below. |||||||||| *123456* barcode section of jrxml:
Meow
  • 18,371
  • 52
  • 136
  • 180
-1
votes
1 answer

What are the specific criteria I should consider when choosing a Java Barcoding Library and which ones do you recommend?

It's 2015 and the last time this question was asked was 2009, and Sourceforge.net is currently down, so I'm having a hard time researching the different Java implementations of barcoding libraries to decide what the best fit would be for our…
IcedDante
  • 6,145
  • 12
  • 57
  • 100
-1
votes
1 answer

How to set the code 128-C in Jasper Report using Barcode4j?

Good Day! Anyone know how to set the Code 128-C in Jasper Report using Barcode4j? I believed that the default is set to ABC. I saw in this link http://barcode4j.sourceforge.net/2.1/symbol-code128.html and this is the default configuration. Where I…
Nosbig
  • 1
  • 1
  • 4
-4
votes
1 answer

Hide URL in the 1d barcode so that when anyone scan it it will directly take to respective product page

I want to hide the URL in the 1D barcode so when anyone scan it, it will directly take me to the product page. Is it possible, I have generated barcode now when I am scanning it, it is showing me barcode number but not the URL. try { Code128Bean…
javatechie
  • 11
  • 1
1 2
3