Questions tagged [barbecue]

Barbecue is an open-source, Java library that provides the means to create barcodes for printing and display in Java applications. A number of barcode formats are supported and many more can be added via the flexible barcode API. Barcodes can be output to three different image formats (PNG, GIF, JPEG), used as a Swing component, or written out as SVG.

18 questions
3
votes
3 answers

Why is the Barbecue Barcode library generating a different image from other Barcode generators?

I am having a problem with the Barbecue Barcode Library. I am trying to create a simple code128 barcode, but the image I get is different from what I get from other online (i.e. http://barcode-generator.org) and desktop (i.e. Zing) Barcode…
Eric Belair
  • 10,574
  • 13
  • 75
  • 116
3
votes
5 answers

How to re-size the text generated by Barbecue API?

I am trying to generate a barcode using the Barbecue API. The problem i am facing is that while i try to re-size the barcode the code in textual form which is printed below the barcode remains the same size. I need to decrease its side also. I have…
Nitesh Verma
  • 1,795
  • 4
  • 27
  • 46
2
votes
0 answers

Barcode text is empty using Jasper Report and Barbecue

I want to show on my Jasper Report one EAN13 barcode WITH text. So far the preview in JasperSoft Studio 6.5.1 is working great, I see the barcode and the text under it: This is the code part of it:
VORiAND
  • 145
  • 3
  • 17
  • 35
2
votes
0 answers

Add text above barcode and change fontsize using Barbecue

I'm using barbecue to generate barcodes in java. It generates barcodes successfully but there is a small issue. I would like to add some little text just above the barcode. I would also like to change the font size/style of the text/numbers below…
David
  • 501
  • 1
  • 7
  • 13
2
votes
1 answer

Previous barcode is displayed when attempting to display dynamically generated barcodes

When I generate barcode dynamically, it always prints the previous input, not the latest code. When I refresh the page with refresh button on the browser, the correct barcode is displayed. But If I refresh the page with a JSF commandbutton, still…
Buddhika Ariyaratne
  • 2,339
  • 6
  • 51
  • 88
1
vote
0 answers

Inserting .png images into MS Word giving white square "This image can't be displayed at this time

There are plenty of questions re - getting working code for inserting images into MS word which I have used amongst other online resources to get me this far. I've been able to create an array of images(barcodes) to be inserted into word in order…
James Sowter
  • 61
  • 1
  • 1
  • 5
1
vote
0 answers

Set the location of the barcode with barbecue

The following prints my barcode (using barbecue) try{ Barcode b = BarcodeFactory.createCode128(info); PrinterJob job = PrinterJob.getPrinterJob(); job.setPrintable(b); if (job.printDialog()){} job.print(); } }catch…
yaylitzis
  • 5,354
  • 17
  • 62
  • 107
1
vote
2 answers

How do I create barcode image without containing text at bottom using barbecue library

I want to generate a barcode.png file but the file generated contains the Barcode number also and I don't want that, I only want image without Text. How to do that? Below is my code:- Barcode barcode3; barcode3 =…
testTechie
  • 41
  • 6
1
vote
0 answers

java.io.NotSerializableException in a predefined jar : barbecue-1.5-beta1.jar

I'm using JasperReport library and barbecue api to fill a report containing an UCC128 bar code, but when i execute the code i'm getting this error but i don't even have a starting point to solve this problem : Exception in thread "main"…
Amira
  • 3,184
  • 13
  • 60
  • 95
0
votes
1 answer

Spring Boot and Barbecue Barcode Library - Text not printed

I have a very puzzling scenario here. Let me paste the code first and explain later POM
Kihats
  • 3,326
  • 5
  • 31
  • 46
0
votes
1 answer

Illegal character- Try using extended mode if you need to encode the full ASCII character set

I am unable to generate barcode(code39) for 'space' character. For example: "BAR CODE" I am passing it with = or _ or ~ symbols like below BAR_CODE BAR=CODE BAR~CODE For all the above, getting an error as "Illegal character- Try using extended mode…
Ashok K
  • 1
  • 2
0
votes
1 answer

Barbecue Barcode PDF417

I need to generate a PDF417 barcode with error correction level of 5 using Barbecue api. I generate a PDF417 by calling createPDF417(data) on the BarcodeFactory and this returns a barcode object which is passed to my print formatting class as a…
user2982867
  • 71
  • 1
  • 1
  • 4
0
votes
1 answer

How to use barcodes in JasperReport?

I want to show on my JasperRepost one EAN13 barcode. I have the 13 digit input in the field list for it (SQL query is also OK), but in JasperSoft Studio 6.6.0 the "Barcode" element in the Palette doesn't seem to work with drag-and-drop (doesn't do…
VORiAND
  • 145
  • 3
  • 17
  • 35
0
votes
0 answers

Barbecue library, barcode prob

i have a small problem. I successfully generated a barcode using barbecue library but i'm trying to print on a paper of size 99x210 and unfortunately i can't resize the barcode. It's too big. I'm generating like this try { Barcode barcode =…
Jim.D
  • 17
  • 7
0
votes
1 answer

barcode generated with jasperreport can't be scanned

I'm working on a javafx project where i need to generate a label product with a barecode (code128). I used jasperreport with barbecue library for this purpose. The problem is that the barcode generated can't be scanned with my barcode scanner…
laghmouchi
  • 13
  • 3
1
2