cordova-plugin-printer icon indicating copy to clipboard operation
cordova-plugin-printer copied to clipboard

Roll printer only prints 5mm height

Open snadal opened this issue 5 years ago • 5 comments

With the last version of cordova-plugin-printer, no matter what options I chooose I always get a 5mm height cutted paper in Brother QL820-NWB

Debugging the plugin it seems that it ends calling to method bestPaperFromArray, and there is choosen 29mm roll paper and ignoring any width or height that I set up in options.

Please please could you provide with a sample for printing in roll paper?

Thank you!

snadal avatar Apr 09 '19 16:04 snadal

We are hitting the same issue. Any suggestion on how to debug this? I'm willing to send a PR but I have never developed a Cordova plugin. We are trying to print on iOS.

ralsu091 avatar Apr 12 '19 13:04 ralsu091

Having this issue printing to a Brother QL-810. Same results using the sample app.

fenrissy avatar Apr 12 '19 18:04 fenrissy

Seems like 0.8.0 breaks the printing. I used the sample app 0.7.1dev and it printed correctly (almost). At least it's not 5 mm paper. We will try with that version and see if it fully fixes our issue.

ralsu091 avatar Apr 12 '19 19:04 ralsu091

I've submitted a PR to fix this (https://github.com/katzer/cordova-plugin-printer/pull/213) on iOS. While the PR is accepted, you can change the affected code in file APPPrinter.m, or can (temporarily!) point to fork https://github.com/Maubic/cordova-plugin-printer

snadal avatar Apr 13 '19 15:04 snadal

I've submitted a PR to fix this (#213) on iOS. While the PR is accepted, you can change the affected code in file APPPrinter.m, or can (temporarily!) point to fork https://github.com/Maubic/cordova-plugin-printer

Thank you, working now.

fenrissy avatar Apr 17 '19 15:04 fenrissy