Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Public Attributes | |
const | C_TABLE = 0 |
const | N_TABLE = 1 |
const | OTHER = 2 |
Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode.
const 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(); $reader = new BarCodeReader(image, DecodeType::AUSTRALIA_POST); $reader->setCustomerInformationInterpretingType(CustomerInformationInterpretingType::C_TABLE); foreach($reader->readBarCodes() as $result) { print("BarCode Type: ".$result->getCodeType()); print("BarCode CodeText: ".$result->getCodeText()); }
const 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(); $reader = new BarCodeReader(image, DecodeType::AUSTRALIA_POST); $reader->setCustomerInformationInterpretingType(CustomerInformationInterpretingType::N_TABLE); foreach($reader->readBarCodes() as $result) { print("BarCode Type: ".$result->getCodeType()); print("BarCode CodeText: ".$result->getCodeText()); }
const 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(); $reader = new BarCodeReader(image, DecodeType::AUSTRALIA_POST); $reader->CustomerInformationInterpretingType = CustomerInformationInterpretingType::OTHER); foreach($reader->readBarCodes() as $result) { print("BarCode Type: ".$result->getCodeType()); print("BarCode CodeText: ".$result->getCodeText()); }