iPad Data Matrix Generator generate, create 2d barcode Data Matrix images in iPad (iOS) application

Generate & Print Data Matrix barcode images in iPad (iOS) Application

  • Source code is provided to build with iOS SDK that best fits for your application.
  • Quickly generate Data Matrix barcodes in iPad applications
  • Easily integrate the Data Matrix creation features into iPad projects
  • Entirely developed with Objective-C
  • Compatible with Mac OS X 10.6 and greater
  • Support Xcode 3.2 and higher
  • Support with iOS 3.2 and the later versions
  • Compatible with the Data Matrix barcode symbology standard IEC 16022: 2006
  • Source code for iOS Data Matrix is provided with the purchase of Unlimited Developer License

Index

 

iPad Data Matrix Generator Introduction

iPad Data Matrix is a Data Matrix barcode generator component developed for iPad apps developers who need add Data Matrix creation features into their developmental projects for iPad.

  • Generate Data Matrix barcodes on iPad client apps, without communicating with a server
  • Data Matrix barcode generation support on desktops as well as servers
  • iPad Data Matrix Generator Guide provided with iPad Data Matrix generation sample

A Data Matrix code is a two-dimensional matrix barcode consisting of black and white "cells" or modules arranged in either a square or rectangular pattern. The information to be encoded can be text or raw data. Usual data size is from a few bytes up to 2 kilobytes. The length of the encoded data depends on the symbol dimension used. Error correction codes are added to increase symbol strength: even if they are partially damaged, they can still be read. A Data Matrix symbol can store up to 2,335 alphanumeric characters.

 

Valid Data Scope

iPad Barcode Data Matrix supports:

  • all 128 characters of ASCII
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.

 

How to generate barcode in Objective-C on your iPad applications?

  1. Create a barcode object
  2. Set barcode properties
  3. call drawWithView() method, to paint barcode on the canvas.

Sample Code:
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    OBLinear *pLinear = [OBLinear new];
    [pLinear setNBarcodeType: OB_CODE128A];
    [pLinear setPDataMsg: [[NSString alloc] initWithString: (@"AB")]];
    //[pLinear setPSupData: [[NSString alloc] initWithString: (@"14562")]];
    [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];
    
}
 

iPad Data Matrix Generator - Barcode Properties


Category Class Properties Default Comments
Basic pData "" NSString. Data matrix value to encode
 
Data Matrix
Special
bProcessTilde false BOOL.
Set the bProcessTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is false.
  • ~3: is used only at the very beginning of the symbol for the reader programming purpose.
  • ~5: is used only at the very beginning of the symbol, the header [)> + ASCII 30 + ASCII 05 + ASCII 29 will be transmitted by the barcode reader before the data in the message and the trailer ASCII 30 + ASCII 4 will be transmitted afterwards.
  • ~6: is used only at the very beginning of the symbol, the header [)> + ASCII 30 + ASCII 06 + ASCII 29 will be transmitted by the barcode reader before the data in the message and the trailer ASCII 30 + ASCII 4 will be transmitted afterwards.
  • ~7NNNNNN: is used to specify the Extended Channel Interpretations and NNNNNN is a value between 000000 and 999999.
  • ~NNN: is used to represent the ASCII character with the value of NNN. NNN is from 000 to 255
nDataMode 0 int.
Set the nDataMode property.
Valid values are
OB_DATAMATRIX_Auto = 0,
OB_DATAMATRIX_ASCII = 1,
OB_DATAMATRIX_C40 = 2,
OB_DATAMATRIX_Text = 3,
OB_DATAMATRIX_X12 = 4,
OB_DATAMATRIX_Edifact = 5,
OB_DATAMATRIX_Base256 = 6,
OB_DATAMATRIX_Customer = 7
  • Auto (0): Barcode library will decide the best data mode for you.
  • ASCII (1): it is used to encode data that mainly contains ASCII characters (0-127). This is the default encoding format by Barcode Library.
  • C40 (2): it is used to encode data that mainly contains numeric and upper case characters.
  • Text (3): it is used to encode data that mainly contains numeric and lower case characters.
  • X12 (4):it is used to encode the standard ANSI X12 electronic data interchange characters.
  • EDIFACT (5): it is used to encode 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111).
  • Base256 (6): it is used to encode 8 bit values.
nFormatMode 0 int.
Default is OBDataMatrixFormatMode.OB_DATAMATRIX_Format_10X10. Specifies the Data Matrix Format to use on that symbology.
Valid values see enum OBDataMatrixFormatMode.
OB_DATAMATRIX_Format_10X10 = 0,
OB_DATAMATRIX_Format_12X12 = 1,
OB_DATAMATRIX_Format_14X14 = 2,
OB_DATAMATRIX_Format_16X16 = 3,
OB_DATAMATRIX_Format_18X18 = 4,
OB_DATAMATRIX_Format_20X20 = 5,
OB_DATAMATRIX_Format_22X22 = 6,
OB_DATAMATRIX_Format_24X24 = 7,
OB_DATAMATRIX_Format_26X26 = 8,
OB_DATAMATRIX_Format_32X32 = 9,
OB_DATAMATRIX_Format_36X36 = 10,
OB_DATAMATRIX_Format_40X40 = 11,
OB_DATAMATRIX_Format_44X44 = 12,
OB_DATAMATRIX_Format_48X48 = 13,
OB_DATAMATRIX_Format_52X52 = 14,
OB_DATAMATRIX_Format_64X64 = 15,
OB_DATAMATRIX_Format_72X72 = 16,
OB_DATAMATRIX_Format_80X80 = 17,
OB_DATAMATRIX_Format_88X88 = 18,
OB_DATAMATRIX_Format_96X96 = 19,
OB_DATAMATRIX_Format_104X104 = 20,
OB_DATAMATRIX_Format_120X120 = 21,
OB_DATAMATRIX_Format_132X132 = 22,
OB_DATAMATRIX_Format_144X144 = 23,
OB_DATAMATRIX_Format_8X18 = 24,
OB_DATAMATRIX_Format_8X32 = 25,
OB_DATAMATRIX_Format_12X26 = 26,
OB_DATAMATRIX_Format_12X36 = 27,
OB_DATAMATRIX_Format_16X36 = 28,
OB_DATAMATRIX_Format_16X48 = 29
nFnc1 - int.
nApplicationIndicator - int.
bStructuredAppend false BOOL. Set bStructuredAppend property to true, then Structured Append is enabled.
nSymbolCount 0 int. Set nSymbolCount property to the number of total symbols which make the sequence.
nSymbolIndex 0 int. Set nSymbolIndex property to the position of current symbol in the secuence (Start with 0).
nFileId 0 int. Set nFileId property to be identified to the same file.
 
Size Related uom 0 Unit of meature for all size related setting in the library.
0: pixel; 1: cm; 2: inch.
fX 2 width of barcode module (narrow bar), default is 2 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





All iPad Barcode Supported Types

1D / Linear Barcodes

Code-39   |    Code-128   |    UCC/EAN128 (GS1 128)
UPC-A   |    UPC-E   |    EAN-8   |    EAN-13


2D / Matrix Barcodes

Data Matrix   |    QR-Code





OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge .NET HTML5 Document Viewer high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.