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

Inherits ExtCodetextBuilder.

Public Member Functions

 __construct ()
 
 init ()
 
 addECICodetextWithEncodeMode (int $ECIEncoding, int $encodeMode, string $codetext)
 
 addCodetextWithEncodeMode (int $encodeMode, string $codetext)
 
 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 ()
 

Static Public Member Functions

static construct ($javaClass)
 

Private Attributes

const JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwDataMatrixExtCodetextBuilder"
 

Additional Inherited Members

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

Detailed Description

Extended codetext generator for 2D DataMatrix barcodes for ExtendedCodetext Mode of DataMatrixEncodeMode


//Extended codetext mode
//create codetext
$textBuilder = new DataMatrixExtCodetextBuilder();
$codetextBuilder->addECICodetextWithEncodeMode(ECIEncodings::Win1251, DataMatrixEncodeMode::BYTES, "World");
$codetextBuilder->addPlainCodetext("Will");
$codetextBuilder->addECICodetext(ECIEncodings::UTF_8, "犬Right狗");
$codetextBuilder->addCodetextWithEncodeMode(DataMatrixEncodeMode::C_40, "ABCDE");
//generate codetext
$codetext = $textBuilder->getExtendedCodetext();
//generate
$generator = new BarcodeGenerator(EncodeTypes::DATA_MATRIX, null, $codetext);
$generator->getParameters()->getBarcode()->getDataMatrix()->setDataMatrixEncodeMode(DataMatrixEncodeMode::EXTENDED_CODETEXT);
$generator->save("test.bmp", BarcodeImageFormat::BMP);

Constructor & Destructor Documentation

◆ __construct()

DataMatrixExtCodetextBuilder::__construct ( )

Member Function Documentation

◆ addCodetextWithEncodeMode()

DataMatrixExtCodetextBuilder::addCodetextWithEncodeMode ( int  $encodeMode,
string  $codetext 
)

Adds codetext with defined encode mode to the extended codetext items

Parameters
encodeModeEncode mode value
codetextCodetext in unicode to add as extended codetext item

◆ addECICodetextWithEncodeMode()

DataMatrixExtCodetextBuilder::addECICodetextWithEncodeMode ( int  $ECIEncoding,
int  $encodeMode,
string  $codetext 
)

Adds codetext with Extended Channel Identifier with defined encode mode

Parameters
ECIEncodingExtended Channel Identifier
encodeModeEncode mode value
codetextCodetext in unicode to add as extended codetext item with Extended Channel Identifier with defined encode mode

◆ construct()

static DataMatrixExtCodetextBuilder::construct (   $javaClass)
static

◆ getExtendedCodetext()

DataMatrixExtCodetextBuilder::getExtendedCodetext ( )

Generates Extended codetext from the extended codetext list.

Returns
Extended codetext as string

Reimplemented from ExtCodetextBuilder.

◆ init()

DataMatrixExtCodetextBuilder::init ( )

Reimplemented from ExtCodetextBuilder.

Member Data Documentation

◆ JAVA_CLASS_NAME

const DataMatrixExtCodetextBuilder::JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwDataMatrixExtCodetextBuilder"
private