watson / ipp-printer

An IPP printer written in Node.js
MIT License
548 stars 81 forks source link

MultiPrinter #10

Open MustafaSaleh opened 8 years ago

MustafaSaleh commented 8 years ago

First, Great JOB, Second can I use the virtual printer to send same job to multi printer on same network? because I have project need to print same job on multi printer. do you have any advice? and I tried to use Programmatic code , but it didn't listen , although the cli work fine.

watson commented 8 years ago

If the two printers support the same features, you might be able to just clone the TCP traffic and sending that to the extra printer - kind of like I do in the ipp-spy module: https://github.com/watson/ipp-spy/blob/85aa624f2869f714bac26eb1e6c22bd0865f5a93/index.js#L66-L74

watson commented 8 years ago

@MustafaSaleh I've just made a new module called fork-proxy, I think it does exactly what you want. Just set up a proxy to forward everything to each of the printers you want to print. Then have each client send print-jobs to the proxy instead. If you want you can wrap it in a module that also exposes the printer as a printer on the network