Hello everyone, I tried to print a very large item and was surprised when the printer triggered the cut and did not finish printing it.
I noticed that this routine takes the size of the Electron window where the document was rendered. Putting a manual value of 4096 (much higher than the value I need, everything worked normally).
My thermal printer is 80mm.
How can I get around this?
|
height = convertPixelsToMicrons(mainWindow.getContentSize()[1]); |
Hello everyone, I tried to print a very large item and was surprised when the printer triggered the cut and did not finish printing it.
I noticed that this routine takes the size of the Electron window where the document was rendered. Putting a manual value of 4096 (much higher than the value I need, everything worked normally).
My thermal printer is 80mm.
How can I get around this?
electron-pos-printer/src/main/post-printer.ts
Line 108 in d01e961