Jump to content
We've recently updated our Privacy Statement, available here ×

PDF417 /2D barcode using Barcode4J : scanned data is not equal to input data


joja65

Recommended Posts

Hello all,

I am developing a label for a customer who uses PDF417 barcode.

I am only able to create such a barcode using the Barcode4J library (2.0), because that on is also supported within our WMS ireport runtime environment.

However, when I scan the barcode I see that some data fields  are not returning proper values.

Basically: this is what I put in (|| are concatenate marks for Oracle, CHR(29) is the field separator, CHR(30) = format trailer).
This string is exactly as specified in theCustomer's  report specs.

CHR(91) || CHR(41) || CHR(62) || CHR(30) || 
  '06' || CHR(29) ||
  '12S'|| 'GTLVWAG01' || CHR(29) ||
  '2L' || '22' || CHR(29) ||
  '1L' || '01E75' || CHR(29) ||
  '1J' || 'UN049977473123456789' || CHR(29) ||
  'P' || ' 3A0 867 212 AH DNX' || CHR(29) ||
  'Q' || '1234567' || CHR(29) ||
  'B' || '006428' || CHR(29) ||
  'V' || '012874920'  || CHR(29) ||
  '12S'|| '12345678'  || CHR(29) ||
  '1T'|| '1234567890' || CHR(29) ||
  CHR(30) || CHR(4)

 

And this is what I scan:

[)>0612SGTLVWAG012L221L01E751JUN049977473123456789P 3A0 867 212 AH DNXQ12345671AAGECIV012874920BC$BCDEFGHI1T1234567890

So basically, the3  data field marked in red, after the green marked Q field  (starting with B, V and 12S identifiiers) go wrong.

When I change the order of the fields, f.i. put the 1T field after the Q field, this field goes wrong in exactly the same way. So it scans exactly the same "rubbish" for the 3 fields after the Q and the last field is Ok again.

 

I already expirimented with different error level settings etc, but the result is always the same.

Since I am new to this barcode and never used it: does anyone have any clue what is going on or what I can do to resolve it?

I also included the code for the PDF417 element.

Thanks for any help!

Jos Janssen

 

Code:


Post Edited by joja65 at 02/01/2011 11:47
Link to comment
Share on other sites

  • 6 months later...
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 8 months later...
  • 1 year later...

I have a pdf 417 generator and reader, just share pdf 417 generating source code in .net c# with all.

public static void CreatePDF417(REImage reImage)
        {
            PDF417 barcode = new PDF417();//create a pdf417 barcode

            barcode.Data = "123456789";//set barcode data            
            barcode.X = 2.0F;
            barcode.XtoYRatio = 0.5F;
            barcode.Resolution = 96;
            barcode.Rotate = Rotate.Rotate0;

            barcode.DrawBarcode(reImage, 300, 450);//draw barcode on REImage with location x and y

        }

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...