'Convert png/jpg to urf/pwg-raster to print it through IPP
I'm trying to print using NodeJS some PDF file to an IP printer through IPP. However, my print only supports these document format:
- application/octet-stream
- image/urf
- image/pwg-raster
There're plenty of methods of converting the PDF to an image, but I'm not sure how can I convert that image (png/jpg) to image/urf - image/pwg-raster codification to be able to print it.
Any tips?
Thank you
Solution 1:[1]
While making a printing app, i found myself needing to do exactly that. And like you, found mostly nothing. So i made my own, available as standalone utilities here: https://github.com/attah/ppm2pwg/
pdf2printable from there can do pdf to pwg or urf raster directly (they are pretty much the same format).
Also; application/octet-stream just means auto-detect. And apart from the odd broken implementation listing only that, and Postscript printer with bonus PDF support, that is only between the other formats listed.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Anton Thomasson |
