HTML Barcode API
This section describes the Javascript Application Programming Interface (API) of the HTML Barcode SDK. The parameters used in the API are described in the previous section. A sample usage of the API is provided for each barcode.Codabar
DrawHTMLBarcode_Codabar(data,humanReadable,units, minBarWidth,width,height,barWidthRatio, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Codabar("12345678","yes","in",0,3,1,3,"bottom", "center","","black","white");
Code39
DrawHTMLBarcode_Code39(data,checkDigit,humanReadable,units, minBarWidth,width,height,barWidthRatio, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Code39("12345678",1,"yes","in",0,3,1,3,"bottom", "center","","black","white");
Code39 Ascii
DrawHTMLBarcode_Code39ASCII(data,checkDigit,humanReadable,units, minBarWidth,width,height,barWidthRatio, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Code39ASCII("12345678",1,"yes","in",0,3,1,3,"bottom", "center","","black","white");
Code93
DrawHTMLBarcode_Code93(data,checkDigit,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Code93("12345678",1,"yes","in",0,3,1,"bottom", "center","","black","white");
Code128 A
DrawHTMLBarcode_Code128A(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Code128A("12345678","yes","in",0,2.5,1,"bottom", "center","","black","white");
Code128 B
DrawHTMLBarcode_Code128B(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Code128B("12345678","yes","in",0,2.5,1,"bottom", "center","","black","white");
Code128 C
DrawHTMLBarcode_Code128C(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Code128C("12345678","yes","in",0,3,1,"bottom", "center","","black","white");
Code128 Auto
DrawHTMLBarcode_Code128Auto(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Code128Auto("12345678","yes","in",0,3,1,"bottom", "center","","black","white");
UCCEAN
DrawHTMLBarcode_UCCEAN(data,gs1Compliance,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_UCCEAN("12345678",1,"yes","in",0,2,1,"bottom", "center","","black","white");
I2of5
DrawHTMLBarcode_I2OF5(data,checkDigit,humanReadable,units, minBarWidth,width,height,barWidthRatio, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_I2OF5("12345678",1,"yes","in",0,3,1,3,"bottom", "center","","black","white");
Industrial 2of5
DrawHTMLBarcode_Industrial2OF5(data,checkDigit,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_Industrial2OF5("12345678",1,"yes","in",0,3,1,"bottom", "center","","black","white");
Modified Plessy
DrawHTMLBarcode_ModifiedPlessy(data,checkDigit,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_ModifiedPlessy("12345678",1,"yes","in",0,3,1,"bottom", "center","","black","white");
EAN13
DrawHTMLBarcode_EAN13(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_EAN13("12345678","yes","in",0,2,1,"bottom", "center","","black","white");
EAN8
DrawHTMLBarcode_EAN8(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_EAN8("12345678","yes","in",0,2,1,"bottom", "center","","black","white");
UPCA
DrawHTMLBarcode_UPCA(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_UPCA("12345678","yes","in",0,3,1,"bottom", "center","","black","white");
UPCE
DrawHTMLBarcode_UPCE(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_UPCE("12345678","yes","in",0,3,1,"bottom", "center","","black","white");
EXT2
DrawHTMLBarcode_EXT2(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_EXT2("12345678","yes","in",0,1,0.5,"bottom", "center","","black","white");
EXT5
DrawHTMLBarcode_EXT5(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_EXT5("12345678","yes","in",0,1.5,0.5,"bottom", "center","","black","white");
GS1 Databar 14
DrawHTMLBarcode_GS1Databar14(data,linkage,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)Usage :
DrawHTMLBarcode_GS1Databar14("12345678",0,"yes","in",0,3,1,"bottom", "center","","black","white");
Other useful pages :
- How to use the Javascript provided by the SDK for creating barcodes in HTML?
- HTML Barcode SDK Properties