ExtCodetextBuilder

ExtCodetextBuilder class

Module: aspose_barcode.generation.ext_codetext_builder

Helper class for automatic codetext generation of the Extended Codetext Mode.

Constructors

NameDescription
init

Methods

NameReturn TypeStaticDescription
add_eci_codetextNoneNoAdds codetext with Extended Channel Identifier. Args: eci_encoding (ECIEncodings): Extended Channel Identifier. codetext (str): Codetext in unicode to add as an extended codetext item with Extended Channel Identifier.
add_plain_codetextNoneNoAdds plain codetext to the extended codetext items. Args: codetext (str): Codetext in unicode to add as an extended codetext item.
clearNoneNoClears extended codetext items. Reimplemented in QrExtCodetextBuilder.
extended_codetextOptional[str]NoGenerates extended codetext from the generation items list. Returns: Optional[str]: The generated extended codetext string, or None if not set. Reimplemented in QrExtCodetextBuilder, MaxiCodeExtCodetextBuilder, DotCodeExtCodetextBuilder, DataMatrixExtCodetextBuilder, and AztecExtCodetextBuilder.

ExtCodetextBuilder Constructor

__init__(self, _java_class)
ParameterTypeDescription
_java_class``

ExtCodetextBuilder.add_eci_codetext

add_eci_codetext(self, ECIEncodings eci_encoding, str codetext)

Adds codetext with Extended Channel Identifier. Args: eci_encoding (ECIEncodings): Extended Channel Identifier. codetext (str): Codetext in unicode to add as an extended codetext item with Extended Channel Identifier.

ParameterTypeDescription
eci_encodingECIEncodings
codetextstr

ExtCodetextBuilder.add_plain_codetext

add_plain_codetext(self, str codetext)

Adds plain codetext to the extended codetext items. Args: codetext (str): Codetext in unicode to add as an extended codetext item.

ParameterTypeDescription
codetextstr

ExtCodetextBuilder.clear

clear(self)

Clears extended codetext items. Reimplemented in QrExtCodetextBuilder.

ExtCodetextBuilder.extended_codetext

extended_codetext(self) -> Optional[str]

Generates extended codetext from the generation items list. Returns: Optional[str]: The generated extended codetext string, or None if not set. Reimplemented in QrExtCodetextBuilder, MaxiCodeExtCodetextBuilder, DotCodeExtCodetextBuilder, DataMatrixExtCodetextBuilder, and AztecExtCodetextBuilder.

Return Type: Optional[str]