Label Printer SDK for iOS
Rev. 1.04
4-2-7 Printing 1D Barcode to the Image Buffer
4-2-8 Printing PDF417 Barcode to the Image Buffer
4-2-9 Printing QRCode Barcode to the Image Buffer
lResult = [_printer drawBarcode1D:@">A1234567890"
xPosition:50 yPosition:100
barcodeType:_SDK_BARCODE_TYPE_CODE128
widthNarrow:2 widthWide:6 height:100
hri:_SDK_BARCODE_HRI_BELOW_FONTSIZE1
quietZoneWidth:0
rotation:_SDK_ROTATION_DEGREES_0];
if(lResult == _SDK_RESULT_SUCCESS)
NSLog(@”drawBarcode1D Success”);
lResult =[_printer drawBarcodePDF417:@"PDF417 Test"
xPosition:50 yPosition:300
maximumRowCount:30 maximumColumnCount:5
errorCorrectionLevel:_SDK_ERROR_CORRECTION_LEVEL0
dataCompressionMethod:_SDK_DATA_COMPRESSION_METHOD_TEXT
printBarcodeText:YES
barcodeOriginPoint:_SDK_BARCODE_ORIGIN_POINT_UpperLeft
moduleWidth:3 barHeight:10
rotation:_SDK_ROTATION_DEGREES_0];
if(lResult == _SDK_RESULT_SUCCESS)
NSLog(@”drawBarcodePDF417 Success”);
lResult =[_printer drawBarcodeQRCode:@"QR Code Test"
xPosition:450 yPosition:300
barcodeSize:3
model:_SDK_QRCODE_MODEl_2
errorColectionLevel:_SDK_ERROR_CORRECTION_LEVEL1
rotation:_SDK_ROTATION_DEGREES_0];
if(lResult == _SDK_RESULT_SUCCESS)
NSLog(@”drawBarcodeQRCode Success”);