tags:

views:

263

answers:

1

I have a postscript file and want it to be printed on a IPP capable device (or CUPS server). What is the minimal code and dependencies I could get away with to do that.

Using LPR or libcups gives me lot of cross-plattform dependencies. So my first approach was to implement a minimal subset of IPP (the protocol used by cups and many modern printers) since "it's only extended HTTP". But unfortuntely a IPP client is a lot more code than a few lines and so far I found no IPP client implementation meant for just printing and not managing a printserver.

I would prefer a solution in Python, but would also be happy with something in an oter dynamic language.

A: 

you need to add remote printer to CUPS:

lpadmin -p printername -E -v //IPADDRESS/spool -m driver.ppd

where driver.ppd is the driver to print with

ps: this could also work for programatic access, if printer is set before.

dusoft
This obviously needs a working local cups installation, a requirement I like to avoid - especially on Windows.
mdorseif
sorry I somehow missed that
dusoft
also check this (old) tutorial: http://www.owlfish.com/thoughts/winipp-cups-2003-07-20.html
dusoft