I would recommend ‘git clone’ and ‘npm install’ the code first. Play around with my code, understand it and then take the bits and pieces you want to use. Don’t copy by batches from the start because it usually won’t work that way.
You have to connect to the bluetooth printer first.
This line of code should run
Once this has run, you should be able to execute this line.
Hi @razmans i am using evolute leopad printer, i clone your project and checked. My blue tooth printer listing out and test connection is successful but when i click on test print it show PRINT SUCCESS alert message but data is not printed in paper. In-build app of evolute leopad is working but with this plugin is not working.Please help me to solve this issue.
refer printer link:
TXT_BOLD_OFF: '\x1b\x45\x00', // Bold font OFF
TXT_BOLD_ON: '\x1b\x45\x01', // Bold font ON
TXT_FONT_A: '\x1b\x4d\x00', // Font type A //normal font
TXT_FONT_B: '\x1b\x4d\x01', // Font type B //small font
TXT_FONT_C: '\x1b\x4d\x02', // Font type C //normal font
TXT_NORMAL: '\x1b\x21\x00', // Normal text
TXT_2HEIGHT: '\x1b\x21\x10', // Double height text
TXT_2WIDTH: '\x1b\x21\x20', // Double width text
TXT_4SQUARE: '\x1b\x21\x30', // Double width & height text
This is the limitation of the bluetooth terminal. You can try to change it to bitmap encode. I am not a specialty in turning it to bitmap encode, but you can try and google it. Sorry could not help
Hi, do you know how I can print via a serial connection to a receipt printer (xprinter xp-c2008) ? Do you know of any github repos that might help me or other resources? I also would like to thank you for your git repo for printing in ionic 2+.