Trying to print a File in Electron 1.4.1 app, working @Windows7,32bit


Hello everyone,

I’m trying to print a ticket from a file, or just its content from my Electron app!
I’ve checked the node-printer module, but I can’t come up with a good solution.

I’ve tried, using PrintDirect (as I am working on windows and the PrintFIle is not implemented):

  1. Printing a RAW PostScript file’s content, obtaining a big mess of a file with loads of PS istructions (not recognized from the printer).
  2. Printing only the text content, but the printer has a pre-defined font size and I didn’t find a way to change it; so, it makes a new line each time the printer reaches the end of the line, thus compromising the file integrity (it’s a ticket, I don’t have the width of a A4 paper).

Did anyone found a solution to this?

Thanks in advance for the help!