Browse our Products

Aspose.BarCode for PHP via Java 23.5

All Changes

KeySummaryCategory
BARCODENET-38578Add support of codeset selection for Code128 encoderEnhancement
BARCODENET-38574Render one whitespace symbol to SVG windows bugBug

Public API changes and backwards compatibility

Generation->Code128EncodeMode class was added to select allowed code128 codesets. Function getCode128():Code128Parameters was added to Generation->BarcodeParameters Function getCode128EncodeMode():int was added to Generation->Code128Parameters Function setCode128EncodeMode(int) was added to Generation->Code128Parameters

//Generate code 128 with ISO 15417 encoding
$generator = new BarcodeGenerator(EncodeTypes::Code128, "ABCD1234567890");
$generator->Parameters->Barcode->Code128->setCode128EncodeMode(Code128EncodeMode::AUTO);
$generator->Save(filePath, BarCodeImageFormat::Png);

//Generate code 128 only with Codeset A encoding
$generator = new BarcodeGenerator(EncodeTypes::Code128, "ABCD1234567890");
$generator->Parameters->Barcode->Code128->setCode128EncodeMode(Code128EncodeMode::CODE_A);
$generator->Save(filePath, BarCodeImageFormat::Png);