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();
    }