ayeo/gs1_128

How can I return bar code in data: base64?

Closed this issue · 2 comments

Hi, I wanted to know if I can return the barcode img as data: base64.

ayeo commented

Hi, I just have added method for that Printer::getBase64($textToEncode). Check out if this work for you.

I have added some tests using your barcode (415) 7707242745227 (8020) 170913100114 (3900) 000000000038500 (96) 20170919.
This has revealed some problem with whitespaces - should be fine now.

Thanks