[cups] Query regarding setting up common Interface for print jobs
Johannes Meixner
jsmeix at suse.de
Tue Aug 22 05:02:01 PDT 2017
Hello,
On Aug 10 18:59 Brian Potkin wrote (excerpt):
>>> The OP wants to discriminate between submitted files based on which
>>> *application* they came from. In the most general case this is most
>>> likely not doable. Narrowing it down to particular applications might
>>> produce a solution.
...
> Evince and Firefox both send a PDF to the printing system. Both PDFs are
> generated by Cairo. How does one distinguish between the applications
> which are used to send "My cooking recipes"?
If one can specify different print job options in the
print settings for each application for example
so that Firefox submits a print job like
lp -o myapplication=firefox ...
and Evince submits a print job like
lp -o myapplication=evince ...
then those additional application-specific print job
options are available to all filters in argv[5].
Because the usual filters ignore unknown print job options
only a special selfmade filter could do "the right thing".
Kind Regards
Johannes Meixner
--
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)
More information about the cups
mailing list