BarcodeGenerator

BarcodeGenerator class

BarcodeGenerator for backend barcode images generation. supported symbologies: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, ISBN, GS1Code128, Postnet, Planet EAN14, SCC14, SSCC18, ITF14, SingaporePost … 2D: Aztec, DataMatrix, PDf417, QR code …

public class BarcodeGenerator : joint.BaseJavaClass

Constructors

NameDescription
BarcodeGenerator(object, object)BarcodeGenerator constructor.

Methods

NameDescription
construct(object)
exportToXml(object)Exports BarCode properties to the xml file specified.
generateBarCodeImage(object)Generate the barcode image under current settings. This sample shows how to create and save a barcode image.
getBarcodeTypeBarcode symbology type.
getCodeTextText to be encoded.
getParametersGeneration parameters.
importFromXml(object)Imports BarCode properties from the xml-file specified and creates BarcodeGenerator instance.
init
javaClassName
save(object, object)Save barcode image to specific file in specific format.
setBarcodeType(object)Barcode symbology type.
setCodeText(object, object, object)Encodes the Unicode codeText into a byte sequence using the specified encoding. UTF-8 is the most commonly used encoding. If the encoding supports it and insertBOM is set to true, the function includes a byte order mark (BOM).

Fields

NameDescription
parameters

Examples

// This sample shows how to create and save a barcode image.
let encode_type = EncodeTypes.CODE_128;
let generator = new BarcodeGenerator(encode_type);
generator.setCodeText("123ABC");

See Also