|
None | __init__ (self) |
|
None | addAuto (self, str text) |
| Adds codetext fragment in Auto mode. More...
|
|
None | addBinary (self, str text) |
| Adds codetext fragment in Binary mode. More...
|
|
None | addCommonChineseRegionOne (self, str text) |
| Adds codetext fragment in Common Chinese Region One mode. More...
|
|
None | addCommonChineseRegionTwo (self, str text) |
| Adds codetext fragment in Common Chinese Region Two mode. More...
|
|
None | addECI (self, str text, int encoding) |
| Adds codetext fragment in ECI mode. More...
|
|
None | addGB18030FourByte (self, str text) |
| Adds codetext fragment in GB18030 Four Byte mode. More...
|
|
None | addGB18030TwoByte (self, str text) |
| Adds codetext fragment in GB18030 Two Byte mode. More...
|
|
None | addGS1 (self, str text) |
| Adds codetext fragment in GS1 mode. More...
|
|
None | addNumeric (self, str text) |
| Adds codetext fragment in Numeric mode. More...
|
|
None | addText (self, str text) |
| Adds codetext fragment in Text mode. More...
|
|
None | addUnicode (self, str text) |
| Adds codetext fragment in Unicode mode. More...
|
|
None | addURI (self, str text) |
| Adds codetext fragment in URI mode. More...
|
|
str | getExtendedCodetext (self) |
| Returns codetext from Extended mode codetext builder. More...
|
|
None | init (self) |
|
None | __init__ (self, javaClass) |
|
def | getJavaClass (self) |
|
str | getJavaClassName (self) |
|
bool | isNull (self) |
|
None | printJavaClassName (self) |
|
None | setJavaClass (self, javaClass) |
|
Extended codetext generator for Han Xin Code for Extended Mode of HanXinEncodeMode.
codeTextBuilder = Generation.HanXinExtCodetextBuilder()
codeTextBuilder.addGB18030TwoByte("漄")
codeTextBuilder.addGB18030FourByte("㐁")
codeTextBuilder.addCommonChineseRegionOne("全")
codeTextBuilder.addCommonChineseRegionTwo("螅")
codeTextBuilder.addNumeric("123")
codeTextBuilder.addText("qwe")
codeTextBuilder.addUnicode("ıntəˈnæʃənəl")
codeTextBuilder.addECI("ΑΒΓΔΕ", 9)
codeTextBuilder.addAuto("abc")
codeTextBuilder.addBinary("abc")
codeTextBuilder.addURI("backslashes_should_be_doubled\000555:test")
codetext = codeTextBuilder.getExtendedCodetext()
bg = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, codetext)
bg.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(Generation.HanXinEncodeMode.EXTENDED)
img = bg.generateBarCodeImage()
reader = Recognition.BarCodeReader(img, None, Recognition.DecodeType.HAN_XIN)
foundBarcodes = reader.readBarCodes()
print(f"found Barcodes: {len(foundBarcodes)}")
print(f"codetext: {foundBarcodes[0].getCodeText()}")