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

Extended codetext generator for 2D DataMatrix barcodes for ExtendedCodetext Mode of DataMatrixEncodeMode. More...

Inherits ExtCodetextBuilder.

Public Member Functions

None __init__ (self)
 
None addCodetextWithEncodeMode (self, DataMatrixEncodeMode encodeMode, str codetext)
 Adds codetext with defined encode mode to the extended codetext items. More...
 
None addECICodetextWithEncodeMode (self, ECIEncodings ECIEncoding, DataMatrixEncodeMode encodeMode, str codetext)
 Adds codetext with Extended Channel Identifier with defined encode mode. More...
 
str getExtendedCodetext (self)
 Generates Extended codetext from the extended codetext list. More...
 
None init (self)
 
- Public Member Functions inherited from ExtCodetextBuilder
None __init__ (self, javaClass)
 
None addECICodetext (self, ECIEncodings ECIEncoding, str codetext)
 Adds codetext with Extended Channel Identifier. More...
 
None addPlainCodetext (self, str codetext)
 Adds plain codetext to the extended codetext items. More...
 
None clear (self)
 Clears extended codetext items. More...
 
- Public Member Functions inherited from BaseJavaClass
def getJavaClass (self)
 
str getJavaClassName (self)
 
bool isNull (self)
 
None printJavaClassName (self)
 
None setJavaClass (self, javaClass)
 

Static Public Member Functions

DataMatrixExtCodetextBuilder construct (Any javaClass)
 

Static Public Attributes

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

Additional Inherited Members

- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

Extended codetext generator for 2D DataMatrix barcodes for ExtendedCodetext Mode of DataMatrixEncodeMode.

# Extended codetext mode
# create codetext
codetextBuilder = Generation.DataMatrixExtCodetextBuilder()
codetextBuilder.addECICodetextWithEncodeMode(Generation.ECIEncodings.Win1251, Generation.DataMatrixEncodeMode.BYTES, "World")
codetextBuilder.addPlainCodetext("Will")
codetextBuilder.addECICodetext(Generation.ECIEncodings.UTF8, "犬Right狗")
codetextBuilder.addCodetextWithEncodeMode(Generation.DataMatrixEncodeMode.C40, "ABCDE")
# generate codetext
codetext = codetextBuilder.getExtendedCodetext()
# generate
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.DATA_MATRIX, codetext)
generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(Generation.DataMatrixEncodeMode.EXTENDED_CODETEXT)
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self)

Member Function Documentation

◆ addCodetextWithEncodeMode()

None addCodetextWithEncodeMode (   self,
DataMatrixEncodeMode  encodeMode,
str  codetext 
)

Adds codetext with defined encode mode to the extended codetext items.

Parameters
encodeModeEncode mode value
codetextCodetext in unicode to add as extended codetext item

◆ addECICodetextWithEncodeMode()

None addECICodetextWithEncodeMode (   self,
ECIEncodings  ECIEncoding,
DataMatrixEncodeMode  encodeMode,
str  codetext 
)

Adds codetext with Extended Channel Identifier with defined encode mode.

Parameters
ECIEncodingExtended Channel Identifier
encodeModeEncode mode value
codetextCodetext in unicode to add as extended codetext item with Extended Channel Identifier with defined encode mode

◆ construct()

DataMatrixExtCodetextBuilder construct ( Any  javaClass)
static

◆ getExtendedCodetext()

str getExtendedCodetext (   self)

Generates Extended codetext from the extended codetext list.

Returns
: Extended codetext as string

Reimplemented from ExtCodetextBuilder.

◆ init()

None init (   self)

Reimplemented from ExtCodetextBuilder.

Member Data Documentation

◆ JAVA_CLASS_NAME

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