[cups.general] cups-pdf custom args

Michael Sweet msweet at apple.com
Mon Jan 4 09:59:26 PST 2010


You can pass in any option on the command-line and provide a default on the server side. For example, for an option called "identifier" you can use:

    lpadmin -p zPDF -o identifier-default=some-value

Then you will see "identifier" in argv[5] for every job, and specifying "identifier" as an option to the lp command will override the default you set with lpadmin, e.g.:

    lp -d zPDF -o identifier=some-other-value filename

On Dec 30, 2009, at 2:32 PM, Jack wrote:

> using cups 1.4.2 with the cups-pdf driver that comes with it, I see 6 arguments.  This is nice - one in particular I've been looking for - originating-host-name is really nice!  THanks!
> 
> So, I'm looking to hack on this a bit.  I want to include a place for an extra string - be it email, identifier, etc.  You see, I run a ton of automated jobs, and having the machine identifier with the doc name is 99% all I need, but there are cases where I need more.
> 
> An identifier string that I could place would be handy. Something like
> http://printserver:631/printers/zPDF?identifier=pathology_reports
> 
> I think this is pretty doable, but I just want a pointer as to where I'd be looking for this.
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups mailing list