Aspose.Barcode for Python via Java Generation and Recognition API docs
HanXinExtCodetextBuilder Class Reference

Extended codetext generator for Han Xin Code for Extended Mode of HanXinEncodeMode. More...

Inherits BaseJavaClass.

Public Member Functions

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)
 
- Public Member Functions inherited from BaseJavaClass
None __init__ (self, javaClass)
 
def getJavaClass (self)
 
str getJavaClassName (self)
 
bool isNull (self)
 
None printJavaClassName (self)
 
None setJavaClass (self, javaClass)
 

Static Public Attributes

string JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwHanXinExtCodetextBuilder"
 

Additional Inherited Members

- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

Extended codetext generator for Han Xin Code for Extended Mode of HanXinEncodeMode.

# Extended codetext mode
# create codetext
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")
# generate codetext
codetext = codeTextBuilder.getExtendedCodetext()
# generate
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()}")

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self)

Member Function Documentation

◆ addAuto()

None addAuto (   self,
str  text 
)

Adds codetext fragment in Auto mode.

Parameters
texttext Codetext string

◆ addBinary()

None addBinary (   self,
str  text 
)

Adds codetext fragment in Binary mode.

Parameters
texttext Codetext string

◆ addCommonChineseRegionOne()

None addCommonChineseRegionOne (   self,
str  text 
)

Adds codetext fragment in Common Chinese Region One mode.

Parameters
texttext Codetext string

◆ addCommonChineseRegionTwo()

None addCommonChineseRegionTwo (   self,
str  text 
)

Adds codetext fragment in Common Chinese Region Two mode.

Parameters
texttext Codetext string

◆ addECI()

None addECI (   self,
str  text,
int  encoding 
)

Adds codetext fragment in ECI mode.

Parameters
texttext Codetext string
encodingencoding ECI encoding in integer format

◆ addGB18030FourByte()

None addGB18030FourByte (   self,
str  text 
)

Adds codetext fragment in GB18030 Four Byte mode.

Parameters
texttext Codetext string

◆ addGB18030TwoByte()

None addGB18030TwoByte (   self,
str  text 
)

Adds codetext fragment in GB18030 Two Byte mode.

Parameters
texttext Codetext string

◆ addGS1()

None addGS1 (   self,
str  text 
)

Adds codetext fragment in GS1 mode.

Parameters
texttext Codetext string

◆ addNumeric()

None addNumeric (   self,
str  text 
)

Adds codetext fragment in Numeric mode.

Parameters
texttext Codetext string

◆ addText()

None addText (   self,
str  text 
)

Adds codetext fragment in Text mode.

Parameters
texttext Codetext string

◆ addUnicode()

None addUnicode (   self,
str  text 
)

Adds codetext fragment in Unicode mode.

Parameters
texttext Codetext string

◆ addURI()

None addURI (   self,
str  text 
)

Adds codetext fragment in URI mode.

Parameters
texttext Codetext string

◆ getExtendedCodetext()

str getExtendedCodetext (   self)

Returns codetext from Extended mode codetext builder.

Returns
: Codetext in Extended mode

◆ init()

None init (   self)

Reimplemented from BaseJavaClass.

Member Data Documentation

◆ JAVA_CLASS_NAME

string JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwHanXinExtCodetextBuilder"
static