iPhone GS1-128/EAN-128 Generator generate, create barcode GS1-128/EAN-128 images in iPhone (iOS) application
Generate & Print Code GS1-128/EAN-128 barcode images in iPhone (iOS) Application
- Fast create EAN 128 barcodes in iOS applications, like iOS 6 app (with an armv7s slice for iPhone 5)
- Easy to integrate the EAN 128 barcode generation functionality into your developmental iPhone projects
- Completely built in Objective-C
- Mac OS X 10.6 and greater are required
- Compatible with Xcode 3.2 and above
- Compatible with iOS 3.2 and above version, and works with iPhone 3G/3GS, iPhone 4/4GS, and iPhone 5
- Compatible with the latest EAN 128 barcode symbology ISO standard
- Source code for iOS EAN 128 sdk is available with the purchase of Unlimited Developer License
Index
iPhone EAN 128 Barcode Generator Introduction
iPhone EAN 128 Generator SDK is a EAN 128 generator component designed for iOS project developers who need add EAN 128 creation features into their developmental applications for iPhone.
- EAN 128 generation support on desktops as well as servers
- Generate EAN 128 on iPhone client apps, without communicating with a server
- Complete iPhone EAN 128 Generator Guide provided with iPhone EAN 128 generation demo project
GS1-128/EAN-128 is an application standard of the GS1 implementation using the Code 128 barcode specification. The former correct name was UCC/EAN-128. Other no longer used names have included UCC-128 and EAN-128. GS1-128 uses a series of Application Identifiers to include additional data such as best before dates, batch numbers, quantities, weights and many other attributes needed by the user.
GS1-128/EAN-128 Valid Data Scope
iPhone Barcode EAN 128 supports:
- all 128 characters of ASCII
- values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.
Creating GS1-128 (UCC/EAN-128) Compliant BarCodes in iPhone project
GS1 Function Code 1 (FNC1) and the Application Identifier (AI)
OnBarcode iPhone Barcode Generator allows easily to add application identifiers in GS1 128 / EAN 128, by add parentheses to AIs.
For example, to encode AI (00), with data 350123451234567894, with second AI (21), with data 01234567,
you need pass string "(00)350123451234567894(21)01234567" to barcode Data property DataMsg
How to generate barcode in Objective-C?
- Create a barcode object
- Set barcode properties
- call drawWithView() method, to paint barcode on the canvas.
Sample Code:
- (void)drawRect:(CGRect)rect {
// Drawing code
OBLinear *pLinear = [OBLinear new];
[pLinear setNBarcodeType: OB_EAN128];
[pLinear setPDataMsg: [[NSString alloc] initWithString: (@"(10)12345")]];
[pLinear setFX: USER_DEF_BAR_WIDTH];
[pLinear setFY: USER_DEF_BAR_HEIGHT];
[pLinear setFLeftMargin: (USER_DEF_LEFT_MARGIN)];
[pLinear setFRightMargin: (USER_DEF_RIGHT_MARGIN)];
[pLinear setFTopMargin: (USER_DEF_TOP_MARGIN)];
[pLinear setFBottomMargin: (USER_DEF_BOTTOM_MARGIN)];
[pLinear setNRotate: (OB_Rotate0)];
UIFont *pTextFont = [UIFont fontWithName: @"Arial" size: 8.0f];
[pLinear setPTextFont: pTextFont];
[pLinear drawWithView: (self)];
[pLinear release];
}
iPhone EAN-128/GS1-128 Generator - Barcode Properties
| Category |
Class Properties |
Default |
Comments |
| Basic |
nBarcodeType |
OB_EAN128 (11) |
OBBarcodeType. Barcode type. |
| pDataMsg |
"" |
NSString. Barcode data value to encode |
| bAddCheckSum |
true |
BOOL. AddCheckSum property is not applied here. AddCheckSum property is not applied. IPhone Barcode Generator will automatically add a check sum in the end. |
| |
EAN 128 Special |
bProcessTilde |
false |
BOOL. Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is false.
~NNN: is used to represent the ASCII character with the value of NNN. NNN is from 000 - 255. |
| |
| Size Related |
uom |
0 |
Unit of meature for all size related setting in the library.
0: pixel; 1: cm; 2: inch.
|
| fX |
1 |
width of barcode module (narrow bar), default is 1 pixel |
| fY |
30 |
barcode module height, default is 30 pixel |
| fBarcodeWidth |
0 |
generted barcode image width |
| fBarcodeHeight |
0 |
generted barcode image height |
| fLeftMargin |
0 |
image left margin |
| fRightMargin |
0 |
image right margin |
| fTopMargin |
0 |
image top margin |
| fBottomMargin |
0 |
image bottom margin |
| nResolution |
72 |
in DPI |
| nRotate |
0 |
OBRotate. Valid values:
OB_Rotate0 = 0,
OB_Rotate90 = 1,
OB_Rotate180 = 2,
OB_Rotate270 = 3
|
| |
Text & Color |
bShowText |
true |
If true, display barcode data text, otherwise do not display. |
| bShowCheckSumChar |
true |
If true, display the check sum character in the end of data, if there is a check sum. |
| pTextFont |
Arial, Plain, 11 |
NSFont - Barcode text font style |
| fTextMargin |
6 |
Space between barcode and barcode data text, default is 6 pixel |
iPhone Barcode Generator Supporting Barcode Types