Re:Writing a printer driver in JavaScript
by frankenst1 on Tuesday February 01, 2022 @11:24AM
(#30164770)
Misleading title. "Printer driver" suggests a piece of software which makes the printer accessible for other programs. The software in this article merely converts an image into a different format.
[ Parent
| on HN ]
Re:Writing a printer driver in JavaScript
by pastudan on Tuesday February 01, 2022 @11:29AM
(#30164871)
I suppose you're right... "CUPS Filter" might be a better word than "Driver", but I'm not sure most people would be familiar with that term before reading the full post. It would not be hard to add this script into CUPS as a filter so that it's accessible to all programs. At the end of the day, that's all that a driver is: a filter + a PPD, and the PPD already exists.
Re:Writing a printer driver in JavaScript
by Cloudef on Tuesday February 01, 2022 @11:48AM
(#30165277)
Lots of printers usually dont need a driver nowadays. They listen to some port where you can input data. Sometimes even simply netcat a pdf.
Here's "driver" i did for star's receipt printer: https://git.cloudef.pw/escpos2raster.git/tree/src/bin/starpb...