QrExtCodetextBuilder
QrExtCodetextBuilder class
Module: aspose_barcode.generation.qr_ext_codetext_builder
Inherits: ExtCodetextBuilder
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 Example how to generate FNC1 second position for Extended Mode Example how to generate multi ECI mode for Extended Mode
Constructors
| Name | Description |
|---|---|
| init |
Methods
| Name | Return Type | Static | Description |
|---|---|---|---|
| add_codetext_with_compaction_mode | None | No | |
| add_fnc1_first_position | None | No | Adds FNC1 in first position to the extended codetext items. |
| add_fnc1_group_separator | None | No | Adds Group Separator (GS - ‘\u001D’) to the extended codetext items. |
| add_fnc1_second_position | None | No | Adds FNC1 in second position to the extended codetext items. Args: codetext (str): Value of the FNC1 in the second position. |
| clear | def | No | Clears extended codetext items. Reimplemented from ExtCodetextBuilder. |
| extended_codetext | Optional[str] | No | Generates extended codetext from the extended codetext list. Returns: Optional[str]: Extended codetext as a string, or None if not set. Reimplemented from ExtCodetextBuilder. |
QrExtCodetextBuilder Constructor
__init__(self)
QrExtCodetextBuilder.add_codetext_with_compaction_mode
add_codetext_with_compaction_mode(self, QrExtCompactionMode mode, str codetext)
| Parameter | Type | Description |
|---|---|---|
mode | QrExtCompactionMode | |
codetext | str |
QrExtCodetextBuilder.add_fnc1_first_position
add_fnc1_first_position(self)
Adds FNC1 in first position to the extended codetext items.
QrExtCodetextBuilder.add_fnc1_group_separator
add_fnc1_group_separator(self)
Adds Group Separator (GS - ‘\u001D’) to the extended codetext items.
QrExtCodetextBuilder.add_fnc1_second_position
add_fnc1_second_position(self, str codetext)
Adds FNC1 in second position to the extended codetext items. Args: codetext (str): Value of the FNC1 in the second position.
| Parameter | Type | Description |
|---|---|---|
codetext | str |
QrExtCodetextBuilder.clear
clear(self) -> def
Clears extended codetext items. Reimplemented from ExtCodetextBuilder.
Return Type: def
QrExtCodetextBuilder.extended_codetext
extended_codetext(self) -> Optional[str]
Generates extended codetext from the extended codetext list. Returns: Optional[str]: Extended codetext as a string, or None if not set. Reimplemented from ExtCodetextBuilder.
Return Type: Optional[str]