Writing a printer driver in JavaScript
kubesail.com
Writing a printer driver in JavaScript
1–10 of 19 posts
Re: Writing a printer driver in JavaScript
#2Sure, if you know you're always going to be using a Zebra printer, and you control the whole pipe from software to the physical label, then you're going to have a lot more explicit control if you use ZPL over a PDF. But the second any of those presuppositions change, it's back to the drawing board. (Actually, even the Zebra assumption isn't sound, because they themselves are not always 100% reliable in following their own specifications. And the specifications... boy howdy.)
The old argument in favor of ZPL is that you can be much more precise with the instructions you're sending to your thermal, resulting in higher print quality, and therefore more reliable barcode scans and OCR. But the world doesn't stand still, and shipping carriers have been steadily improving their scanning capabilities over the last 20 years, even while thermal printer capabilities have remained largely stagnant. After all, USPS has to also optimize for people who are printing labels on shitty desktop inkets. The increase in barcode quality you'd get out of using ZPL is overkill.
TLDR: Save yourself a lot of heartache and just sling PDF's. Postscript/Ghostscript is so much easier to cajole into cooperation.
Re: Writing a printer driver in JavaScript
#3For next time you are stuck with that problem: qemu + binfmt_misc can transparently run cross-architecture apps, see https://ownyourbits.com/2018/06/13/transparently-running-bin...
Re: Writing a printer driver in JavaScript
#4Re: Writing a printer driver in JavaScript
#5As someone who has spent an unfortunate amount of time working on shipping label software for ecommerce companies, my advice is to stay the hell away from ZPL. It's the layout language equivalent of C -- too many low-level footguns. Just send 4x6 PDF's to your thermal printer and be done with it. There are so many more tools, of much better quality, available for composing PDF's than you'll ever find for ZPL or other…
I could be wrong, but I don't think pixel perfect barcodes are necessary with modern scanners. The only thing going for ZPL is the ability to store the label data as simple ASCII text.
Re: Writing a printer driver in JavaScript
#6> But in this tarball's filter directory there are only x64 and x86 filters. For next time you are stuck with that problem: qemu + binfmt_misc can transparently run cross-architecture apps, see https://ownyourbits.com/2018/06/13/transparently-running-bin...
Re: Writing a printer driver in JavaScript
#7Re: Writing a printer driver in JavaScript
#8Misleading 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.
Re: Writing a printer driver in JavaScript
#9Re: Writing a printer driver in JavaScript
#10Misleading 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.
Here's "driver" i did for star's receipt printer: https://git.cloudef.pw/escpos2raster.git/tree/src/bin/starpb...