quocvinh50th / cocoabarcodes

Automatically exported from code.google.com/p/cocoabarcodes
0 stars 0 forks source link

NKDCode128Barcode Problem #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have NKDCode128Barcode generation problem.

The init with content "4091873".
The result I got is "04091873" using scanner. 
Left-pad with zero if odd number of characters. 

How can I fix the problem?

My code is below.

NKDCode128Barcode *barcode = [NKDCode128Barcode alloc];
barcode = [barcode initWithContent:@"4091873" printsCaption:NO];

[barcode setBarWidth:2.0];
[barcode setWidth:180.0];
[barcode setHeight:61.0];

NSLog(@"%@",[barcode description])
UIImage *theImage = [UIImage imageFromBarcode:barcode];

Original issue reported on code.google.com by marinoh...@gmail.com on 29 Feb 2012 at 1:49