javascript or php - how to read consumer account slips

Asked

Viewed 482 times

-1

Dear ones, would anyone know how to read consumer account bar code (light, gas etc.) to get value, expiration date etc. in javascript or php? Thank you!

1 answer

1

I particularly like it very much of this library, simple to use and effective:

You simply have to create a tag img, svg or canvas and inform the javascript

<svg id="barcode"></svg>
<!-- ou -->
<canvas id="canvas"></canvas>
<!-- ou -->
<img id="barcode"/>

Javascript

JsBarcode("#barcode", "ola!");
// ou jQuery
$("#barcode").JsBarcode("ola!");

Example taken from the library documentation itself!

  • Thank you, but is it good for energy bill slips, for example, which have 48 numbers, 44 valid and 4-digit checkers? If yes, what would be the type?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.