Printing on bluetooth printers

Sorry, but I have not done QR Code and barcode printing. If you have a solution, please do share

Sorry for the late response. I’m not sure how to print in Chinese characters, maybe you can contact the person that opened the issue on how he/she manage to resolve this.

Its possible to print images?
do you have some example my friend? thank you!

Sorry for the late response. It is possible to pront bitmaps, but i am not sure how to do it

My solution works only with bluetooth receipt printers. For other printer, i would recommend using an ionic native print plugin. It could assist you with your problems

okay, thank you my friend, God bless you!

May be this link can help.

@razmans Can we print pdf using plugin? Do you have any idea about printing pdf or html directly ? Can you give some idea on this? Thanks in advance.

Try this:

Hello @razmans,Thanks for the response. For now, this is what i am doing. But this leads me to the print preview page. But what i need to know is how can i connect to bluetooth printer and print a pdf file in printer directly? Can you share some idea about how to do that. Thanks again!

@vishwas097 did you get any solution?

@Sayakion Hey yes! I am using plugin to list bluetooth printer,connect to printer and write data to printer.

This was working with ionic 3 perfectly:

import {MutableBuffer} from 'mutable-buffer';

buff=new MutableBuffer()

but with Ionic 4 i get error:

buff=new MutableBuffer(); // now it expects 2 arguments but gets 0, and shows error

Even if i try to add arguments like this:

buff = new MutableBuffer(1024, 1024);

i get error:

ERROR Error: Uncaught (in promise): ReferenceError: Buffer is not defined
ReferenceError: Buffer is not defined

Anyone had same problem?

already can print my data,but can i print qrcode?? cause i wan to print in my bill

same here, do you find out the solution???

Actually you dont need mutable buffer, you can use it like this when preparing for print

            let CMD =;  // data are shortcut codes declared before
            let printtext = ' ';
            printtext+= CMD.TEXT_FORMAT.TXT_ALIGN_CT;
            printtext+=  "Some text here";
            printtext+= CMD.TEXT_FORMAT.TXT_ALIGN_CT;
            printtext+= CMD.EOL;
            printtext+=  "Some text here";
            printtext+= CMD.TEXT_FORMAT.TXT_ALIGN_CT;
            printtext+= CMD.EOL;
            //AND THEN JUST:
            this.bluetoothSerial.write(printtext).then(success => {
              console.log("Printed successfuly!")
            }, error => {

And if you find solution for printing qr code pls share :smiley:

Hello… I am having a problem while printing receipt… Half of the receipt is being printed…I have used mutable buffer also…nothing is working…I am deploying this app on a device having Android 9 and using Ionic version 3.9.2…Can I know the possible reason behind this issue since everything was working fine on older device?

Hi razmans,
Thanks for your post, Everything is working well. Can you share document or website on where you get the styling codes.

Did you find any solution. facing same exact issue

Did this work for you. I am facing same issue where only partial data is being printed.