QrExtCodetextBuilder
Contents
[
Hide
]QrExtCodetextBuilder class
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.
new QrExtCodetextBuilder()
Example:
//Example how to generate FNC1 first position for Extended Mode
//create codetext
const lTextBuilder = new QrExtCodetextBuilder();
lTextBuilder.addFNC1FirstPosition();
lTextBuilder.addPlainCodetext("000%89%%0");
lTextBuilder.addFNC1GroupSeparator();
lTextBuilder.addPlainCodetext("12345<FNC1>");
//generate codetext
const lCodetext = lTextBuilder.getExtendedCodetext();
Methods
| Name | Description |
|---|---|
| addCodetextWithCompactionMode(mode, codetext) | Adds codetext with the specified QR compaction mode to the extended codetext items. |
| addFNC1FirstPosition() | Adds FNC1 in first position to the extended codetext items |
| addFNC1GroupSeparator() | Adds Group Separator (GS - ‘\u001D’) to the extended codetext items |
| addFNC1SecondPosition(codetext) | Adds FNC1 in second position to the extended codetext items |
| clear() | Clears extended codetext items |
| getExtendedCodetext() | Generates Extended codetext from the extended codetext list. |