Inherits ExtCodetextBuilder.
|
| const | JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwDotCodeExtCodetextBuilder" |
| |
Extended codetext generator for 2D DotCode barcodes for ExtendedCodetext Mode of DotCodeEncodeMode
//Extended codetext mode
//create codetext
$textBuilder = new DotCodeExtCodetextBuilder();
$textBuilder->addFNC1FormatIdentifier();
$textBuilder->addECICodetext(ECIEncodings::Win1251, "Will");
$textBuilder->addFNC1FormatIdentifier();
$textBuilder->addECICodetext(ECIEncodings::UTF8, "犬Right狗");
$textBuilder->addFNC1FormatIdentifier();
$textBuilder->addECICodetext(ECIEncodings::UTF16BE, "犬Power狗");
$textBuilder->addPlainCodetext("Plain text");
$textBuilder->addFNC3SymbolSeparator();
$textBuilder->addFNC3ReaderInitialization();
$textBuilder->addPlainCodetext("Reader initialization info");
//generate codetext
$codetext = $textBuilder->getExtendedCodetext();
//generate
$generator = new BarcodeGenerator(EncodeTypes::DOT_CODE, $codetext);
{
$generator->getParameters()->getBarcode()->getDotCode()->setDotCodeEncodeMode(DotCodeEncodeMode::EXTENDED_CODETEXT);
$generator->save("test.bmp", BarCodeImageFormat::BMP);
}
◆ __construct()
| DotCodeExtCodetextBuilder::__construct |
( |
| ) |
|
◆ addECICodetext()
| ExtCodetextBuilder::addECICodetext |
( |
int |
$ECIEncoding, |
|
|
string |
$codetext |
|
) |
| |
|
inherited |
Adds codetext with Extended Channel Identifier
- Parameters
-
| int | ECIEncoding Extended Channel Identifier |
| string | codetext Codetext in unicode to add as extended codetext item with Extended Channel Identifier |
◆ addFNC1FormatIdentifier()
| DotCodeExtCodetextBuilder::addFNC1FormatIdentifier |
( |
| ) |
|
Adds FNC1 format identifier to the extended codetext items
◆ addFNC3ReaderInitialization()
| DotCodeExtCodetextBuilder::addFNC3ReaderInitialization |
( |
| ) |
|
Adds FNC3 reader initialization to the extended codetext items
◆ addFNC3SymbolSeparator()
| DotCodeExtCodetextBuilder::addFNC3SymbolSeparator |
( |
| ) |
|
Adds FNC3 symbol separator to the extended codetext items
◆ addPlainCodetext()
| ExtCodetextBuilder::addPlainCodetext |
( |
string |
$codetext | ) |
|
|
inherited |
Adds plain codetext to the extended codetext items
- Parameters
-
| string | $codetext | Codetext in unicode to add as extended codetext item |
◆ addStructuredAppendMode()
| DotCodeExtCodetextBuilder::addStructuredAppendMode |
( |
int |
$barcodeId, |
|
|
int |
$barcodesCount |
|
) |
| |
Adds structured append mode to the extended codetext items
- Parameters
-
| barcodeId | ID of barcode |
| barcodesCount | Barcodes count |
◆ clear()
| ExtCodetextBuilder::clear |
( |
| ) |
|
|
inherited |
Clears extended codetext items
◆ construct()
| static DotCodeExtCodetextBuilder::construct |
( |
|
$javaClass | ) |
|
|
static |
◆ getExtendedCodetext()
| DotCodeExtCodetextBuilder::getExtendedCodetext |
( |
| ) |
|
Generates Extended codetext from the extended codetext list.
- Returns
- Extended codetext as string
Reimplemented from ExtCodetextBuilder.
◆ getJavaClass()
| BaseJavaClass::getJavaClass |
( |
| ) |
|
|
inherited |
◆ getJavaClassName()
| BaseJavaClass::getJavaClassName |
( |
| ) |
|
|
inherited |
◆ init()
| DotCodeExtCodetextBuilder::init |
( |
| ) |
|
◆ isNull()
| BaseJavaClass::isNull |
( |
| ) |
|
|
inherited |
◆ printJavaClassName()
| BaseJavaClass::printJavaClassName |
( |
| ) |
|
|
inherited |
◆ setJavaClass()
| BaseJavaClass::setJavaClass |
( |
|
$javaClass | ) |
|
|
protectedinherited |
◆ JAVA_CLASS_NAME
| const DotCodeExtCodetextBuilder::JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwDotCodeExtCodetextBuilder" |