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

Extended codetext generator for 2D DotCode barcodes for ExtendedCodetext Mode of DotCodeEncodeMode. More...

Inherits ExtCodetextBuilder.

Public Member Functions

None __init__ (self)
 
None addFNC1FormatIdentifier (self)
 Adds FNC1 format identifier to the extended codetext items. More...
 
None addFNC3ReaderInitialization (self)
 Adds FNC3 reader initialization to the extended codetext items. More...
 
None addFNC3SymbolSeparator (self)
 Adds FNC3 symbol separator to the extended codetext items. More...
 
None addStructuredAppendMode (self, int barcodeId, int barcodesCount)
 Adds structured append mode to the extended codetext items. 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

DotCodeExtCodetextBuilder construct (Any javaClass)
 

Static Public Attributes

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

Additional Inherited Members

- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

Extended codetext generator for 2D DotCode barcodes for ExtendedCodetext Mode of DotCodeEncodeMode.

#Extended codetext mode
#create codetext
textBuilder = DotCodeExtCodetextBuilder()
textBuilder.addFNC1FormatIdentifier()
textBuilder.addECICodetext(ECIEncodings.Win1251, "Will")
textBuilder.addFNC1FormatIdentifier()
textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗")
textBuilder.addFNC1FormatIdentifier()
textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗")
textBuilder.addPlainCodetext("Plain text")
textBuilder.addFNC3SymbolSeparator()
textBuilder.addFNC3ReaderInitialization()
textBuilder.addPlainCodetext("Reader initialization info")
#generate codetext
codetext = textBuilder.getExtendedCodetext()
#generate
generator = BarcodeGenerator(EncodeTypes.DOT_CODE, codetext)
generator.getParameters().getBarcode().getDotCode().setDotCodeEncodeMode(DotCodeEncodeMode.EXTENDED_CODETEXT)
generator.save("test.bmp", BarCodeImageFormat.BMP)

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self)

Member Function Documentation

◆ addFNC1FormatIdentifier()

None addFNC1FormatIdentifier (   self)

Adds FNC1 format identifier to the extended codetext items.

◆ addFNC3ReaderInitialization()

None addFNC3ReaderInitialization (   self)

Adds FNC3 reader initialization to the extended codetext items.

◆ addFNC3SymbolSeparator()

None addFNC3SymbolSeparator (   self)

Adds FNC3 symbol separator to the extended codetext items.

◆ addStructuredAppendMode()

None addStructuredAppendMode (   self,
int  barcodeId,
int  barcodesCount 
)

Adds structured append mode to the extended codetext items.

Parameters
barcodeId: ID of barcode
barcodesCount:Barcodes count

◆ construct()

DotCodeExtCodetextBuilder 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.MwDotCodeExtCodetextBuilder"
static