Open feroz04 opened 5 years ago
I am trying to print bit image and text togetther in single onclick. it only print the last data (either image or text. how to resolve this issue.
cordova.plugins.bixolonPrint.printBitmap(function successCallback(e) { alert('success') }, function errorCallback(e) { alert('print failure: ' + e); }, { base64Image: printImage.pathName, //base64 string width: 300, //width brightness: 50, // 0 to 100 (Bixolon recommeded 13 to 88) alignment: 1, }); cordova.plugins.bixolonPrint.addLine({ text: " this is some string"+ "\r\n", textAlign: cordova.plugins.bixolonPrint.TextAlign.LEFT, width: 0, height: 0 }); cordova.plugins.bixolonPrint.printText( function (response) { console.log("print success"); }, function (error) { console.log("print failure: ",error.message); }, );
I am trying to print bit image and text togetther in single onclick. it only print the last data (either image or text. how to resolve this issue.