iPhone PDF-417 Generator generate, create 2d barcode PDF-417 images in iPhone (iOS) application
(Unavailable Now)

Generate & Print PDF-417 barcode images in iPhone (iOS) Application



Index

 

PDF-417 Barcode Introduction

PDF-417 is a stacked linear bar code symbol used in a variety of applications, primarily transport, identification cards, and inventory management. PDF stands for Portable Data File. The PDF417 symbology was invented by Dr. Ynjiun P. Wang at Symbol Technologies in 1991.
 

PDF-417 Valid Data Scope

iPhone PDF417 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?

  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];
    
}
 

iPhone PDF-417 Generator - Barcode Properties


Category Class Properties Default Comments
Basic data "" value to encode
 
PDF 417
Special
processTilde false 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.
dataMode 1 (M_TEXT) valid values: 0 (M_AUTO), 1 (M_TEXT), 2 (M_BYTE), 3(M_NUMERIC)
ecl 2 Error correction level, values are from 0 to 8, default is 2.
rowCount 3 The number of rows for PDF417. The value range is from 3 to 90. The default is 3.
columnCount 5 Number of columns. The value range is from 1 to 30. The default is 5. Increase this value, if your data size is large.
truncated false truncated PDF417 may be used where space considerations are a primary concern and symbol damage is unlikely.
isMacro false Set isMacro property to true, then Macro PDF417 is enabled.
macroSegmentIndex 0 the position of current symbol in the secuence (Start with 0).
macroSegmentCount 0 the number of total symbols which make the sequence.
macroFileIndex 0 be identified to the same file
 
Size Related uom 0 Unit of meature for all size related setting in the library.
0: pixel; 1: inch; 2: cm.
X 2 width of barcode module (narrow bar), default is 2 pixel
XtoYRatio 0.3333333f bar width, bar height ratio
barcodeWidth 0 generted barcode image width
barcodeHeight 0 generted barcode image height
leftMargin 0 image left margin
rightMargin 0 image right margin
topMargin 0 image top margin
bottomMargin 0 image bottom margin
resolution 72 in DPI
rotate 0 valid values: 0, 90, 180, 270







iPhone Barcode Generator Supporting Barcode Types









OnBarcode is a market-leading provider of barcode imaging 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 comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding, Paint QR Bar Code in Java, Print QR Code in Software. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide 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.