composer require tecnickcom/tc-lib-barcode in this folder.'; } elseif ($barcodeText === '') { $errorMsg = 'Please provide a Barcode value.'; } else { try { $barcode = new Barcode(); // Create the data matrix as an SVG $bobj = $barcode->getBarcodeObj( 'DATAMATRIX', $barcodeText, -1, // width auto -1, // height auto 'black', [0, 0, 0, 0] ); $bobj->setBackgroundColor('white'); $svgBarcode = $bobj->getSvgCode(); } catch (Throwable $e) { $errorMsg = 'Barcode generation error: ' . safe($e->getMessage()); } } } ?> Spine Label Generator

Spine Label Generator

Tip: In the browser print dialog, set scale to 100% / Actual size.