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

Extended codetext generator for 2D QR barcodes for ExtendedCodetext Mode of QREncodeMode Use Display2DText property of BarCodeBuilder to set visible text to removing managing characters. More...

Inherits ExtCodetextBuilder.

Public Member Functions

None __init__ (self)
 
None addFNC1FirstPosition (self)
 Adds FNC1 in first position to the extended codetext items. More...
 
None addFNC1GroupSeparator (self)
 Adds Group Separator (GS - '\u001D') to the extended codetext items. More...
 
None addFNC1SecondPosition (self, str codetext)
 Adds FNC1 in second position 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)
 

Public Attributes

 javaClass
 
- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Static Public Attributes

string javaClassName = "com.aspose.mw.barcode.MwQrExtCodetextBuilder"
 

Detailed Description

Extended codetext generator for 2D QR barcodes for ExtendedCodetext Mode of QREncodeMode Use Display2DText property of BarCodeBuilder to set visible text to removing managing characters.

Example how to generate FNC1 first position for Extended Mode

# create codetext
lTextBuilder = QrExtCodetextBuilder()
lTextBuilder.addFNC1FirstPosition()
lTextBuilder.addPlainCodetext("000%89%%0")
lTextBuilder.addFNC1GroupSeparator()
lTextBuilder.addPlainCodetext("12345&ltFNC1&gt")
#generate codetext
lCodetext = lTextBuilder.getExtendedCodetext()

Example how to generate FNC1 second position for Extended Mode

#create codetext
lTextBuilder = QrExtCodetextBuilder()
lTextBuilder.addFNC1SecondPosition("12")
lTextBuilder.addPlainCodetext("TRUE3456")
#generate codetext
lCodetext = lTextBuilder.getExtendedCodetext()

Example how to generate multi ECI mode for Extended Mode

#create codetext
lTextBuilder = Generation.QrExtCodetextBuilder()
lTextBuilder.addFNC1FirstPosition()
lTextBuilder.addPlainCodetext("000%89%%0")
lTextBuilder.addFNC1GroupSeparator()
lTextBuilder.addPlainCodetext("12345&ltFNC1&gt")
# generate codetext
lCodetext = lTextBuilder.getExtendedCodetext()

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self)

Member Function Documentation

◆ addFNC1FirstPosition()

None addFNC1FirstPosition (   self)

Adds FNC1 in first position to the extended codetext items.

◆ addFNC1GroupSeparator()

None addFNC1GroupSeparator (   self)

Adds Group Separator (GS - '\u001D') to the extended codetext items.

◆ addFNC1SecondPosition()

None addFNC1SecondPosition (   self,
str  codetext 
)

Adds FNC1 in second position to the extended codetext items.

Parameters
codetextValue of the FNC1 in the second position

◆ 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

◆ javaClass

javaClass

◆ javaClassName

string javaClassName = "com.aspose.mw.barcode.MwQrExtCodetextBuilder"
static