[cups-devel] Virtual Printer for page counting (Qt Client Server program

Helge Blischke helgeblischke at web.de
Thu Nov 24 07:04:32 PST 2016


> Am 24.11.2016 um 12:07 schrieb Jörn-Ingo Weigert <jiweigert at gmail.com>:
> 
> Hi Alok,
> 
>> I belive you need a printer server & client setup.  Try CUPS.
> 
> Thats why i am asking here, ;)
> i need a independent way to hook up on any print job a customer sends to a
> printer from any application (like Firefox, Libreoffice, etc.) on a client
> pc. The reason for this is to provide a printPreview with additional infos,
> like price per Page, etc. and give the customer to change amount of copies,
> way of printing (b/w, double sided ...).
> 
> As at moment I only found that CUPS offer a page-log where i can see what a
> customer have printed, but cant hook on it to provide a customized print
> preview. And additionally these happends only for some postscript- /
> raster-printing printers not for any printer.
> 
> Thats why i am asking if its possible too create a kind of simple virtual
> "fake" printer, which accepts printjobs and where i can hook into to access
> the printjob details, provide my custom Print Preview for accounting
> (adding printing costs to customers session bill).
> Internally I could then redirect the printjob to a existing printer
> provided by the server.
> 
> Do I think to complicated, because there is already a existing solution by
> CUPS (please advise me)?
> 
> Kind regards,
> 
> Jörn-Ingo Weigert
> 
> 2016-11-24 2:34 GMT+01:00 Alok Padey <alok.padey at gmail.com>:
> 

As a first choice, I’d look at Tea4CUPS
<http://www.pykota.com/software/tea4cups>
As it is completely written in Python, you may easily modify if to match your needs.

Helge




More information about the cups mailing list