[cups.development] Create a virtual postscript printer

Joel Buckley leojava at comcast.net
Wed Feb 20 16:13:37 PST 2008


Beat,

I would suggest you divide the problem into two parts:

1. Define a Postscript accepting software printer that accepts streams
   of Postscript print jobs, consistent with "gs".  This may include you
   building a PPD file directing the printing to direct printing to your
   program,  (CUPS folks should be able to help with the PPD file and
   how to add the printer to the CUPS service.)

2. Build a program of your choosing that takes 5-6 input parameters,
   again consistent with gs, and ships the postscript incoming document
   back to the calling user's client service as suggested below.

Cheers,
Joel.

Beat Wolf wrote:
> Of course this application would only work if the cups server is local.
>
> But i see the problem.
> Is there any way to intercept the postscript before it goes to the printer, that works for any application? Is there realy no way to create a printer that takes the postscript file and stores it in /tmp/whatever?
>
> thank you very much for your fast anwser, you are helping us alot
>
> Beat Wolf
>
>   
>> Hello,
>>
>> On Feb 20 01:08 Beat Wolf wrote (shortened):
>>     
>>> ... create a virutal printer, that takes the print job and saves the
>>> postscript file to a specific folder, and launches an application afterwards.
>>>       
>> It is not possible to be implemented in the printing system,
>> it must be implemented in the application, see
>> http://lists.opensuse.org/opensuse-factory/2008-02/msg00036.html
>>
>> How should a service (here the printing system) launch an application
>> on the user's desktop on the user's workstation when the service
>> runs as different user on a different machine in the network?
>>
>> It must be implemented the other way round:
>> The client initiates the access to the server.
>> Not the server initiates an access to a client.
>>
>> Nobody would allow arbitraty programs running as arbitraty users
>> on arbitraty machines to access his own workstation or even his
>> own personal environment - or is there somewhere an operating system
>> out there which allows such nonsense?
>> ;-)
>>
>>
>> Kind Regards
>> Johannes Meixner
>> --
>> SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
>> AG Nuernberg, HRB 16746, GF: Markus Rex
>>
>>     
>
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev
>
>   





More information about the cups-devel mailing list