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

Extended codetext generator for 2D QR barcodes for ExtendedCodetext Mode of QREncodeMode More...

Inherits asposebarcode.Generation.ExtCodetextBuilder.

Public Member Functions

def __init__ (self)
 
def init (self)
 
def addFNC1FirstPosition (self)
 Adds FNC1 in first position to the extended codetext items. More...
 
def addFNC1SecondPosition (self, codetext)
 Adds FNC1 in second position to the extended codetext items. More...
 
def addFNC1GroupSeparator (self)
 Adds Group Separator (GS - '\u001D') to the extended codetext items. More...
 
def getExtendedCodetext (self)
 Generates Extended codetext from the extended codetext list. More...
 
- Public Member Functions inherited from asposebarcode.Generation.ExtCodetextBuilder
def __init__ (self, javaClass)
 
def clear (self)
 Clears extended codetext items. More...
 
def addPlainCodetext (self, codetext)
 Adds plain codetext to the extended codetext items. More...
 
def addECICodetext (self, ECIEncoding, codetext)
 Adds codetext with Extended Channel Identifier. More...
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Public Attributes

 javaClass
 
- Public Attributes inherited from asposebarcode.Assist.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 = QrExtCodetextBuilder()
lTextBuilder.addECICodetext(ECIEncodings.Win1251, "Will")
lTextBuilder.addECICodetext(ECIEncodings.UTF8, "Right")
lTextBuilder.addECICodetext(ECIEncodings.UTF16BE, "Power")
lTextBuilder.addPlainCodetext("t\\e\\\\st")
#generate codetext
lCodetext = lTextBuilder.getExtendedCodetext()

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.Generation.QrExtCodetextBuilder.__init__ (   self)

Member Function Documentation

◆ addFNC1FirstPosition()

def asposebarcode.Generation.QrExtCodetextBuilder.addFNC1FirstPosition (   self)

Adds FNC1 in first position to the extended codetext items.

◆ addFNC1GroupSeparator()

def asposebarcode.Generation.QrExtCodetextBuilder.addFNC1GroupSeparator (   self)

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

◆ addFNC1SecondPosition()

def asposebarcode.Generation.QrExtCodetextBuilder.addFNC1SecondPosition (   self,
  codetext 
)

Adds FNC1 in second position to the extended codetext items.

Parameters
codetextValue of the FNC1 in the second position

◆ getExtendedCodetext()

def asposebarcode.Generation.QrExtCodetextBuilder.getExtendedCodetext (   self)

Generates Extended codetext from the extended codetext list.

Returns
Extended codetext as string

Reimplemented from asposebarcode.Generation.ExtCodetextBuilder.

◆ init()

def asposebarcode.Generation.QrExtCodetextBuilder.init (   self)

Member Data Documentation

◆ javaClass

asposebarcode.Generation.QrExtCodetextBuilder.javaClass

◆ javaClassName

string asposebarcode.Generation.QrExtCodetextBuilder.javaClassName = "com.aspose.mw.barcode.MwQrExtCodetextBuilder"
static