Browse our Products

Aspose.BarCode for PHP via Java 25.2

All Changes

KeySummaryCategory
BARCODENET-37356Add QualitySettings support to NDTBase processorEnhancement
BARCODENET-39189Different ways to generate images yield different resultsEnhancement
BARCODEPHP-856Enhance the BarcodeGenerator constructor to allow omitting the second parameterEnhancement
BARCODENET-39217Improve the sorting algorithm LikelihoodPairComparer classBug

Public API changes and backwards compatibility

Recognition quality and speed of NDTBase processors

Recognition quality and speed of NDTBase processors was improved. These improvements include the following symbologies: Code128, Code16K, Supplement, UPCE, Code39, Code39FullASCII.

BarcodeGenerator API updated

Updated SetCodeText functions for charset encodings. Currently, we have two variant of the function: with selection of BOM (byte order mark) insertion and without.

Updated the setCodeText methods for character set encodings. We currently have two variants of the method: one that allows BOM (byte order mark) insertion selection and one without this option.

  public function example()
  {
    $fullPath = self::folderPath . DIRECTORY_SEPARATOR . "barcode_CODE_128_1_php.png";
    $generator1 = new BarcodeGenerator(EncodeTypes::CODE_128);
    $generator1->setCodeText("123ABCD", "US-ASCII", true);
    $generator1->save($fullPath, BarCodeImageFormat::PNG);

    $generator2 = new BarcodeGenerator(EncodeTypes::CODE_128);
    $generator2->setCodeText("123ABCD", "ISO-8859-1");
    $generator2->save(self::folderPath . DIRECTORY_SEPARATOR . "barcode_CODE_128_2_php.png", BarCodeImageFormat::PNG);

    $generator3 = new BarcodeGenerator(EncodeTypes::CODE_128);
    $generator3->setCodeText("123ABCD", "UTF-8", true);
    $generator3->save(self::folderPath . DIRECTORY_SEPARATOR . "barcode3_php.png", BarCodeImageFormat::PNG);

    $generator4 = new BarcodeGenerator(EncodeTypes::CODE_128);
    $generator4->setCodeText("123ABCD", "UTF-8", false);
    $generator4->save(self::folderPath . DIRECTORY_SEPARATOR . "barcode4_php.png", BarCodeImageFormat::PNG);
  }
This parameter affects only specific code types and encodings. More information is available in the documentation.

Recognition quality stability

Fixes to the barcode area detector were added, improving barcode recognition stability in a multi-threaded environment.