The main BarCode decoding parameters. Contains parameters which make influence on recognized data.
BarcodeSettings::getChecksumValidation |
( |
| ) |
|
Enable checksum validation during recognition for 1D and Postal barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar, PatchCode, Pharmacode, DataLogic2of5 Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies
$generator->save("c:/test.png", BarcodeImageFormat::PNG);
foreach($reader->readBarCodes() as $result)
{
echo ("BarCode CodeText: ".$result->getCodeText());
echo ("BarCode Value: " . $result->getExtended()->getOneD()->getValue());
echo ("BarCode Checksum: " . $result->getExtended()->getOneD()->getCheckSum());
}
foreach($reader->readBarCodes() as $result)
{
echo ("BarCode CodeText: " . $result->CodeText);
echo ("BarCode Value: " . $result->getExtended()->getOneD()->getValue());
echo ("BarCode Checksum: " . $result->getExtended()->getOneD()->getCheckSum());
}
- Returns
- int Enable checksum validation during recognition for 1D and Postal barcodes.
BarcodeSettings::setChecksumValidation |
( |
int |
$value | ) |
|
Enable checksum validation during recognition for 1D and Postal barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar, PatchCode, Pharmacode, DataLogic2of5 Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies
$generator->save("c:/test.png", BarcodeImageFormat::PNG);
foreach($reader->readBarCodes() as $result)
{
echo ("BarCode CodeText: ".$result->getCodeText());
echo ("BarCode Value: " . $result->getExtended()->getOneD()->getValue());
echo ("BarCode Checksum: " . $result->getExtended()->getOneD()->getCheckSum());
}
foreach($reader->readBarCodes() as $result)
{
echo ("BarCode CodeText: " . $result->CodeText);
echo ("BarCode Value: " . $result->getExtended()->getOneD()->getValue());
echo ("BarCode Checksum: " . $result->getExtended()->getOneD()->getCheckSum());
}
- Parameters
-
int | $value | Enable checksum validation during recognition for 1D and Postal barcodes. |