Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text at the bottom of the barcode #162

Closed
YunigeCDilip opened this issue Jul 1, 2022 · 2 comments
Closed

Text at the bottom of the barcode #162

YunigeCDilip opened this issue Jul 1, 2022 · 2 comments

Comments

@YunigeCDilip
Copy link

Hello,

Is there any way I can show the actual code of the generated barcode or a custom text at the bottom part of the generated barcode image?

@casperbakker
Copy link
Member

#130, #125, #111 all cover this, in essence, it's not supported currently.

@yakhyomus
Copy link

yakhyomus commented May 25, 2023

$generator = new BarcodeGeneratorPNG();
return Html::img('data:image/jpeg;base64, '. base64_encode($generator->getBarcode('012345678911121'), $generator::TYPE_EAN_13)), ['width' => '120', 'height' => '50']).
'<br /> 012 345678 911121';

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants