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

Inherits ExtCodetextBuilder.

Public Member Functions

 __construct ()
 
 init ()
 
 addFNC1FirstPosition ()
 
 addFNC1SecondPosition (string $codetext)
 
 addFNC1GroupSeparator ()
 
 getExtendedCodetext ()
 
- Public Member Functions inherited from ExtCodetextBuilder
 __construct ($javaClass)
 
 clear ()
 
 addPlainCodetext (string $codetext)
 
 addECICodetext (int $ECIEncoding, string $codetext)
 
- Public Member Functions inherited from BaseJavaClass
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Private Attributes

const JAVA_CLASS_NAME = "com.aspose.mw.barcode.MwQrExtCodetextBuilder"
 

Additional Inherited Members

- Protected Member Functions inherited from BaseJavaClass
 setJavaClass ($javaClass)
 

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 = new QrExtCodetextBuilder();
$lTextBuilder->addFNC1FirstPosition();
$lTextBuilder->addPlainCodetext("000%89%%0");
$lTextBuilder->addFNC1GroupSeparator();
$lTextBuilder->addPlainCodetext("12345<FNC1>");
//generate codetext
$lCodetext = lTextBuilder->getExtendedCodetext();

Example how to generate FNC1 second position for Extended Mode

//create codetext
$lTextBuilder = new 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 = new 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

◆ __construct()

QrExtCodetextBuilder::__construct ( )

Member Function Documentation

◆ addFNC1FirstPosition()

QrExtCodetextBuilder::addFNC1FirstPosition ( )

Adds FNC1 in first position to the extended codetext items

◆ addFNC1GroupSeparator()

QrExtCodetextBuilder::addFNC1GroupSeparator ( )

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

◆ addFNC1SecondPosition()

QrExtCodetextBuilder::addFNC1SecondPosition ( string  $codetext)

Adds FNC1 in second position to the extended codetext items

Parameters
string$codetextValue of the FNC1 in the second position

◆ getExtendedCodetext()

QrExtCodetextBuilder::getExtendedCodetext ( )

Generates Extended codetext from the extended codetext list.

Returns
string Extended codetext as string

Reimplemented from ExtCodetextBuilder.

◆ init()

QrExtCodetextBuilder::init ( )

Reimplemented from ExtCodetextBuilder.

Member Data Documentation

◆ JAVA_CLASS_NAME

const QrExtCodetextBuilder::JAVA_CLASS_NAME = "com.aspose.mw.barcode.MwQrExtCodetextBuilder"
private