Free knowledge blog: linux, programming, open source, databases, android, frameworks, web and computing in general
If you have followed my posts, you will know that a long time ago I developed a plugin and I have added new features, until today we print QR codes on a thermal printer.
Some time ago I showed you how to print a ticket /receipt directly from browser, today we will use it to print a QR code.
The process is simple, but I recommend to try the hello world example first:
Download the plugin and run it, remember to give it permissions if required. It will be executed in the background.
Then install your printer and make sure it is shared.
Now open an HTML document, include the script and then in another script create a
ConectorPluginV3 object like this:
You can call the
ImprimirCodigoQr method after or before anything, and align it like everything else, just make sure you call it after a
Remember to put the name of your printer when calling
imprimirEn. When testing it in my case it is like this:
If you want to generate and print QR codes by yourself without writing any line of code, navigate to this example (remember that the plugin must be running and the printer must be shared).
You can see its code here.