2

I need to implement a barcode generator (I don't want a barcode reader). So I found this and it works great for the Code 128 symbology.

How can I generate a Code 39 symbol?

Community
  • 1
  • 1
Marco Rossini
  • 409
  • 2
  • 6
  • 18

1 Answers1

1

Sticking with the CoreImage framework I am unable to find any reference to Code 39 barcode generation in the documentation, however it has been noted that the documentation is incomplete at times.

According to this blog post you can determine which filters are available by running the following code:

NSArray *b = [CIFilter filterNamesInCategory:kCICategoryGenerator];
NSLog(@"%@", b);

You can further determine the input parameters for any given filter as follows:

CIFilter *filter = [CIFilter filterWithName:@"CIAztecCodeGenerator"];
NSDictionary *attributes = [filter attributes];
NSLog(@"%@", attributes);

This will help you to determine whether Code 39 support has crept into a recent release of the framework and how to drive it if this should be the case.

Terry Burton
  • 2,238
  • 1
  • 21
  • 36