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

Public Attributes

const C_TABLE = 0
 
const N_TABLE = 1
 
const OTHER = 2
 

Detailed Description

Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode.

Member Data Documentation

◆ C_TABLE

const CustomerInformationInterpretingType::C_TABLE = 0

Use C_TABLE to interpret the customer information. Allows A..Z, a..z, 1..9, space and # sing.

$generator = new BarcodeGenerator(EncodeTypes::AUSTRALIA_POST, "5912345678ABCde");
$generator->getParameters()->getBarcode()->getAustralianPost()->setAustralianPostEncodingTable(CustomerInformationInterpretingType::C_TABLE);
$image = $generator->generateBarcodeImage(BarcodeImageFormat::PNG);
$reader->setCustomerInformationInterpretingType(CustomerInformationInterpretingType::C_TABLE);
foreach($reader->readBarCodes() as $result)
{
print("BarCode Type: ".$result->getCodeType());
print("BarCode CodeText: ".$result->getCodeText());
}

◆ N_TABLE

const CustomerInformationInterpretingType::N_TABLE = 1

Use N_TABLE to interpret the customer information. Allows digits.

$generator = new BarcodeGenerator(EncodeTypes::AUSTRALIA_POST, "59123456781234567");
$generator->getParameters()->getBarcode()->getAustralianPost()->setAustralianPostEncodingTable(CustomerInformationInterpretingType::N_TABLE);
$image = $generator->generateBarcodeImage(BarcodeImageFormat::PNG);
$reader->setCustomerInformationInterpretingType(CustomerInformationInterpretingType::N_TABLE);
foreach($reader->readBarCodes() as $result)
{
print("BarCode Type: ".$result->getCodeType());
print("BarCode CodeText: ".$result->getCodeText());
}

◆ OTHER

const CustomerInformationInterpretingType::OTHER = 2

Do not interpret the customer information. Allows 0, 1, 2 or 3 symbol only.

$generator = new BarcodeGenerator(EncodeTypes::AUSTRALIA_POST, "59123456780123012301230123");
$generator->getParameters()->getBarcode()->getAustralianPost()->setAustralianPostEncodingTable(CustomerInformationInterpretingType::OTHER);
$image = $generator->generateBarcodeImage(BarcodeImageFormat::PNG);
$reader->setCustomerInformationInterpretingType(CustomerInformationInterpretingType::OTHER));
foreach($reader->readBarCodes() as $result)
{
print("BarCode Type: ".$result->getCodeType());
print("BarCode CodeText: ".$result->getCodeText());
}