Renderer/LabelRenderer.php
public function getBarcodeDatamatrix($data)
    {
        $barcode = new Barcode();

        $bobj = $barcode->getBarcodeObj(
            'DATAMATRIX',
            $data,
            256,
            256,
            'black',
            array(0, 0, 0, 0)
        )->setBackgroundColor('white');

        return $bobj->getPngData();
    }
public function getBarcodeDatamatrix($data)
    {
        $barcode = new Barcode();

        $bobj = $barcode->getBarcodeObj(
            'DATAMATRIX',
            $data,
            256,
            256,
            'black',
            array(0, 0, 0, 0)
        )->setBackgroundColor('white');

        return $bobj->getPngData();
    }
public function getBarcodeDatamatrix ( $ data ) { $ barcode = new Barcode ( ) ; $ bobj = $ barcode -> getBarcodeObj ( 'DATAMATRIX' , $ data , 256 , 256 , 'black' , array ( 0 , 0 , 0 , 0 ) ) -> setBackgroundColor ( 'white' ) ; return $ bobj -> getPngData ( ) ; }
Returns the datamatrix from the given data.

@param string $data

@return string
Returns the datamatrix from the given data .