QQ_QQ
QQ_QQ

Reputation: 123

PDF417 barcode encoding variation

I am trying to generate PDF417 barcode images, but I am noticing that the online generators give different results.

For example, entering the same data and using "text" encoding with the same row/column sizes will give two different barcodes with these two online generators.

http://www.racoindustries.com/barcodegenerator/2d/pdf417.aspx

http://generator.onbarcode.com/online-pdf417-barcode-generator.aspx

What is the explanation behind this variation?

Thanks!

Upvotes: 1

Views: 3400

Answers (1)

Michael Rodrigues
Michael Rodrigues

Reputation: 5137

To encode a PDF417 barcode, the input text (e.g. "text") undergoes a number of operations, converting all the text into numbers, applying algorithms, etc. and out the other end comes rows and rows of blocks. These blocks are stacked on top of each other to create a 2D barcode.

It looks like the OnBarcode generator has the "Number of Rows" setting as defaulted to 30, forcing the barcode to be that number of rows. The extra space is filled with nothingness. The Raco one defaults to Automatic, which doesn't need filling with nothingness.

Set the following settings to be the same on both, and they will both produse the same result:

  • Error Correction
  • Row Count
  • Column Count

Results from both providers when settings are the same

Raco

Raco Version

OnBarcode

OnBarcode version

Upvotes: 2

Related Questions