Open yuxxeun opened 5 months ago
In my case i used this in laravel view, and works for me
@php
use Milon\Barcode\DNS1D;
// Create an instance of the DNS1D class
$barcode = new DNS1D();
@endphp
<img src="data:image/png;base64, {!! $barcode->getBarcodePNG("$data->id_stok", 'C128') !!}" alt="" width="55" height="55">
You can pass 2 more arguments to specify the width
& height
Eg: DNS2D::getBarcodePNGPath('238338014', 'C128', 2, 2)
anyone can help me? how to make this barcode not overflow with the container (border), i just add
max-width
class on the css, but not working far.