0
It is possible to convert the digitized line of a bank note into a barcode?
I searched on this subject and found nothing that would help me to remove this doubt.
Example
I have the following line:
23793.13022 50831.414599 05006.305204 8 70010000002000
This line above displays the following barcode:
Now imagine the following:
I have the following code:
<h2 id="numbers">23793.13022 50831.414599 05006.305204 8 70010000002000</h2>
Is there any way to get the numbers inside that
<h2>
and generate a barcode? I realize that the most used is the generation of images in formats "data:image/png;base64
", as in the image above, which is equal to:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZUAAAAyAQAAAAC8Tnt0AAAAU0lEQVR42u3LsQ3AIAwEQEYIhZUmHseipnKTDPESiAkRtSXKDJM9or/+kqs1iG7EM4vW5blf/TXdnlHaMInZgB6zrhte5MSReHh4eHh4eHh4fn8+fNcEXfLEaAgAAAAASUVORK5CYII=">
That is, to better define the question: get the numbers inside the <h2>
and generate a barcode in image format <img src="" >
.
Take a look at this here, there’s a script inside that looks good, in the 3rd answer: http://www.scriptbrasil.com.br/forum/topic/19999-howto generate code for newsletters/
– leofontes
I’ll take a look @leofontes :D
– Alexandre Lopes
Possible duplicate of PHP class to generate barcode in Code39 standard with height and width adjustment
– Guilherme Nascimento
Friend, I’m referring to the boleto bar code. It’s more than 40 digits, there’s only 10.
– Alexandre Lopes