News for hackers. Stuff that matters.
Re:Writing a printer driver in JavaScript by pastudan on Tuesday February 01, 2022 @11:20AM (#30164658)
Completely agree. I tried scaling down the PDFs but Ghostscript on the Raspberry Pi is far slower than just scaling the 1200px wide PNG to 800px. I still got very readable barcodes, and a 100% delivery rate on my first batch of orders, even with that downsampling.

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 by kayodelycaon on Thursday February 03, 2022 @05:10PM (#30199733)
Did you try using imagemagick to convert to the pdf?