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

Inherits ExtCodetextBuilder.

Public Member Functions

 __construct ()
 
 init ()
 
 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.generation.MwMaxiCodeExtCodetextBuilder"
 

Additional Inherited Members

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

Detailed Description

Extended codetext generator for MaxiCode barcodes for ExtendedCodetext Mode of MaxiCodeEncodeMode Use TwoDDisplayText property of BarcodeGenerator to set visible text to removing managing characters.

This sample shows how to use MaxiCodeExtCodetextBuilder in Extended Mode.

//create codetext
$textBuilder = new MaxiCodeExtCodetextBuilder();
$textBuilder->addECICodetext(ECIEncodings::Win1251, "Will");
$textBuilder->addECICodetext(ECIEncodings::UTF8, "犬Right狗");
$textBuilder->addECICodetext(ECIEncodings::UTF16BE, "犬Power狗");
$textBuilder->addPlainCodetext("Plain text");
//generate codetext
$codetext = $textBuilder->getExtendedCodetext();
//generate
$generator = new BarcodeGenerator(EncodeTypes::MAXI_CODE, $codetext);
$generator->getParameters()->getBarcode()->getCodeTextParameters()->setTwoDDisplayText("My Text");
$generator->save("test.bmp", BarcodeImageFormat.BMP);

Constructor & Destructor Documentation

◆ __construct()

MaxiCodeExtCodetextBuilder::__construct ( )

Member Function Documentation

◆ getExtendedCodetext()

MaxiCodeExtCodetextBuilder::getExtendedCodetext ( )

Generates Extended codetext from the extended codetext list.

Returns
string Extended codetext as string

Reimplemented from ExtCodetextBuilder.

◆ init()

MaxiCodeExtCodetextBuilder::init ( )

Reimplemented from ExtCodetextBuilder.

Member Data Documentation

◆ JAVA_CLASS_NAME

const MaxiCodeExtCodetextBuilder::JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwMaxiCodeExtCodetextBuilder"
private