Skip to content

NKDCode128Barcode Problem #9

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions