cupsPrintFile() has no streaming equivalent?

Michael Sweet mike at easysw.com
Thu Feb 22 11:41:00 PST 2007


mike wrote:
> from what i can tell from both the API documentation as well as the
> source of cups/util.c and cups/request.c, cups provides no method of
> streaming a file to the print server.  i hope that i am merely
> overlooking something and the cups API is not crippled in this way.

CUPS is not "crippled" this way, but does not provide a convenience
API to handle streamed printing.  File a feature request with the
kind of API you'd like to see...

If you look at the cupsDoFileRequest code in cups/request.c, you'll
see how to use the lower-level HTTP and IPP APIs to stream your
content to the CUPS server.

> if i can pipe to lpr, i should be able to able to stream content to
> cups for printing.

lpr (and lp) copy to a temporary file and then send the file.


-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list