Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NKDCode128Barcode Problem #9

Open
GoogleCodeExporter opened this issue Apr 22, 2016 · 0 comments
Open

NKDCode128Barcode Problem #9

GoogleCodeExporter opened this issue Apr 22, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 29 Feb 2012 at 1:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant