Foxit PDF SDK
FSBarcode Class Reference

Auto tag result data type: reduce confidence.
More...

Inheritance diagram for FSBarcode:
FSBase

Instance Methods

(FSBitmap *) - generateBitmap:format:unit_width:height:level:
 Generate a barcode bitmap with a given information string and specified barcode format.
More...
 
(id) - init
 Constructor.

 
(id) - initWithOther:
 Constructor, with another barcode object.
More...
 
(BOOL) - isEmpty
 Check whether current object is empty or not.
More...
 

Detailed Description

Auto tag result data type: reduce confidence.

Auto tag result data type: tagreport prepage.

Auto tag result data type: tagreport nextpage.

Auto tag result data type: page.

Auto tag result data type: regions.

Auto tag result data type: artifacts.

Auto tag result data type: paragraphs.

Auto tag result data type: listitem.

Auto tag result data type: figures.

Auto tag result data type: tables.

Auto tag result data type: table row.

Auto tag result data type: table header.

Auto tag result data type: toc.

Auto tag result data type: high confidence.

Auto tag result data type: mediumhigh confidence.

Auto tag result data type: medium confidence.

Auto tag result data type: mediumlow confidence.

Auto tag result data type: low confidence.

Auto tag result data type: check category.

Auto tag result data type: fix category.

Auto tag result data type: hint region.

Auto tag result data type: hint artifacts.

Auto tag result data type: hint paragraph.

Auto tag result data type: hint list.

Auto tag result data type: hint figure.

Auto tag result data type: hint tables.

Auto tag result data type: hint tablerow.

Auto tag result data type: hint tableheader.

Auto tag result data type: hint toc.

Auto tag result data type: hint repair.

Auto tag result data type: touchup reading order.

Auto tag result data type: alttext.

Auto tag result data type: hint alttext.

Auto tag result data type: checker table 5.

Auto tag result data type: introduction.

Auto tag result data type: sum reduce confidence.

Auto tag result data type: ribbon category.

Auto tag result data type: sum alttext figure.

Auto tag result data type: tagrep introduction.

Auto tag result data type: miss figure.

Auto tag result data type: tagreport filename.

Auto tag result data type: back to top.

This class can be used to generate barcode bitmap.

Method Documentation

◆ generateBitmap:format:unit_width:height:level:()

- (FSBitmap *) generateBitmap: (NSString *)  info
format: (FSBarcodeFormat)  format
unit_width: (int)  unit_width
height: (int)  height
level: (FSBarcodeQRErrorCorrectionLevel)  level 

Generate a barcode bitmap with a given information string and specified barcode format.

Parameters
[in]infoInformation string to be encoded to barcode bitmap. It should not be an empty string.
[in]formatBarcode format which is used to encode information string. Please refer to values starting from FSBarcodeFormatCode39 and this should be one of these values.
[in]unit_widthUnit width for barcode, in pixels. Valid values: from 1 to 5. If input value is below 1, 1 will be used by default; if input value is above 5, 5 will be used by default.
The width of the bitmap will be equal to the product of this parameter and the width of the info encoding. Specially, for PDF-417 and QR Code, height will be ignored, and the height of bitmap will be equal to the product of this parameter and the height of the info encoding.
[in]heightThe height for bitmap, in pixels. Valid values: equal to or above 20. If input value is below 20, 20 will be used by default.
Specially, for PDF-417 and QR Code, height will be ignored, and the height of bitmap will be equal to the product of unit_width and the height of the info encoding.
[in]level(Required only for QR Code) Error correction level. Please refer to values starting from FSBarcodeQRCorrectionLevelLow and this should be one of these values.
Returns
A barcode bitmap.

◆ initWithOther:()

- (id) initWithOther: (FSBarcode*)  other

Constructor, with another barcode object.

Parameters
[in]otherAnother barcode object.

◆ isEmpty()

- (BOOL) isEmpty

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
YES means current object is empty, while NO means not.