paystory-de / thermal-printer-cordova-plugin

Cordova wrapper for ESC/POS Thermal Printer library
Apache License 2.0
49 stars 33 forks source link

Unable to Print Image Using bitmapToHexadecimalString() #47

Closed idprime closed 1 year ago

idprime commented 1 year ago

I am facing an issue with my code where I am attempting to print an image on a thermal printer using the bitmapToHexadecimalString() function. However, the image is not being printed on the paper. I would appreciate any assistance in identifying and resolving the problem.

Here is the code I am using:

    ThermalPrinter.bitmapToHexadecimalString({
         type: 'bluetooth',
         id: '00:11:22:33:44:55',
         base64: base64txt
     }, function() {
         alert('Successfully printed!');
     }, function(error) {
         alert('Printing error: ' + error);
    });