CesarBalzer / Cordova-Plugin-BTPrinter

A cordova plugin for bluetooth printer for android platform
Apache License 2.0
81 stars 64 forks source link

Change the printed image witdh (resolve #44) #59

Closed selmo47 closed 2 years ago

selmo47 commented 2 years ago

Change the printed image witdh:

resolve the #44

SukhwaniVandana commented 2 years ago

@selmo47 Hii, the file change mentioned above

bitmap = resizeImage(bitmap, 48 8, mHeight); bitmap = resizeImage(bitmap, 48 12, mHeight);

is not working for me ... I am yet getting my base64 print very much compressed. very tiny font than expected. I have Individually tested by base64 value passed. It gives me proper image. The things change only after passing it to BTPrinter.printBase64() function. Please Help. Its urgent.!!

Change the printed image witdh: * expand the image's witdh to cover all the 80mm page's witdh

resolve the #44

SukhwaniVandana commented 2 years ago

@CesarBalzer Also can you provide me the formula behind this calculation (48 8 & 48 12) for 58mm & 88mm papers . And how the font sizes work in this?