Download & Extend

Code128 reading problem

Project:Barcode
Version:6.x-1.0-rc5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi!

Thank you for a great module. It looks very promising but I'm having some issues.

I'm trying to install the barcode module on my site to generate barcodes based on node id. I'm using hook_node_api() to change the value of my field to the desired code together with the theme_barcode_formatter_default().

It seems it generates the code fine but I get a small duplicate of the code below the 'main' code. I am a novice in barcodes and it could be that this is the way code128 is displayed but in all the examples I see of code128 on the net there is no 'small duplicate' under the 'main barcode'.

When I try to read the generated barcode with my reader it doesn't recoginze the code and can't scan it. I've attached an image of a code with the value 1064 for you to have alook at.

Is this a code issue or is it my ignorance in how this stuff actually works that is the problem? Is my reader broken an everything else is fine?

Could it be my font that is faulty? Attaching my ttf font as well. I've tried several different fonts but this is the one that has generated the barcode that looks 'most right'.

Span

AttachmentSize
1064CODE128.png375 bytes
code128.ttf_.zip2.21 KB

Comments

#1

More information about above:

After reading more and more about how barcodes work I'm wondering if the start and stop characters are implemented by the module itself or if I have to specify these in each value I want a barcode to be generated from? I've scanned the code and I do find that some HEX values are added so I assume that is the values for the prefix and suffix of the generated value?

#2

Hi,
I'm having problem scanning Code128 generated by this module.

Did you have any luck? Does your code128 scan at all?

Thanks.

#3

I gave up and started using this service instead:
http://www.barcodesinc.com/generator/index.php

Good luck.

#4

Title:Code128 duplicate bars problem» Code128 reading problem

#5

+1 subscribing as I also got the same problem.

#6

I've been playing around with the Harish Chauhan barcode class from phpclasses.org and have found several mistakes with it, and have a lot of problems with the code128 barcodes it creates. A lot of it seems to depend on the length of the string. Has anyone else noticed this? It seems odd length codes get padded with a zero in the front, but the generated barcode is not correct either way.

#7

Can you submit a patch?

#8

I have the same issue in 6.x-2.x-dev, I can add that I have troubleshot the thing down to generation of code128-C (numeric only) codes. It seems to do okay with code128-B (alpha-numeric) codes.

You can compare here: http://www.barcodesinc.com/generator/index.php. Their code128 generations work properly.

#9

Is this module being actively developed? I could spend some time reworking the php class.

#10

Same problem for me on 6.x-2.x-dev. I can give help on testing it.

Subscribe.

#12

thanks for your information. I have same problem. is there any way solve it. regards mark inventory control software