Closed jpnobrega closed 4 years ago
Hi @jpnobrega, I think it's only possible to trigger the printer cut function when using type: 'RAW'
on printDirect.
For that, you'll need to create a Buffer
with the contents you want to print, and then, add the cutting command to that Buffer, and send it via the data
property of the object passed to printDirect
.
Here's a discussion on the original node-printer repository that may help you on how to do that: https://github.com/tojocky/node-printer/issues/54
This may also help: https://github.com/tojocky/node-printer/issues/25
Here's an example on printing with type: 'RAW'
(but not cutting):
https://github.com/thiagoelg/node-printer/blob/master/examples/print_raw.js
How to cut after print?