2D Data Matrix Barcode shows extra information

I’m using a 2D datamatrix barcode which is added to the first page of each mailing I’m creating.

The mailings (printed copies) are processed by our Pitney Bowes inserter machine http://www.pitneybowes.com/content/dam/pitneybowes/us/en/legacy/assets/us/docs/DI900-and-DI950-Inserter-Brochure.pdf.

The inserter reads the 2D barcode to determine how many pages the current mailing contains. It then counts out the number of pages, folds and stuffs the contents into a envelope.

The problem is that the inserter is reading extra digits (information) in the 2D barcode which I didn't include/encode. Thus the inserter does not get the correct page count. I only encode the page count (a integer value) in the 2D barcode (nothing else).

I'm not sure what those extra digits included in the 2D barcode are for; and the technician at Pitney Bowes cannot configure the inserter with this extra information in the 2D barcode. The inserter attempts to read 2 spaces with 4 bits. Also when I scan the 2D barcode with a phone app I don't see the extra information (I only see the page count).

I've included snapshots of the data being read on the inserter. Snapshot1 shows the 5 page count and then extra space and extra digits/information (5 051). Snapshot2 shows the 15 page count then a extra space and extra digits/information (15 05).

I've also included the same samples the Pitney Bowes tech used to generate the snapshots. The 2D barcode is located in the lower right corner of the page. Sample1.pdf is a 5 page count and sample2.pdf is a 15 page count.

Please let me know what I'm doing wrong (or not including in my code). I'm using version 6.7 of the aspose barcode lib.


Below is the code used to create the 2D barcode.

Dim b As Aspose.BarCode.BarCodeBuilder
Dim lic As New Aspose.BarCode.License
Dim mem As System.IO.MemoryStream

Dim mPageCount as integer

mPageCount = 5

lic.SetLicense(My.Settings.aspose_lic)

mem = New System.IO.MemoryStream

b = New Aspose.BarCode.BarCodeBuilder
b.SymbologyType = Aspose.BarCode.Symbology.DataMatrix

b.CodeText = mPageCount

b.CodeTextColor = Drawing.Color.White

b.Save(mem, Aspose.BarCode.BarCodeImageFormat.Jpeg)

Hi Gerry,


Thank you for contacting support. We’re working over your query and will get back to you soon.

Hi Gerry,


Thank you for being patient. As we understand, you are using Aspose.BarCode API for only encoding purposes. We have tested your sample code. The output barcode image can be recognized correctly by other online readers without extra space or digits. It appears not an issue with encoding side.

Please feel free to reply us in case of any confusion or questions.