On Feb 24 16:51:22, j...@jggimi.homeip.net wrote:
> On Mon, Feb 24, 2014 at 06:36:35PM +0100, Andr?? St??be wrote:
> 
> > I had a similar setup some time ago. If I remember correctly, you can
> > use lpr's -J option to pass options to foomatic-rip.
> 
> Thank you, Andre'.
> 
> I haven't found that the -J option works for me.  OTOH, the foomatic-rip -o
> operand does work with print options when printing directly.
> 
> /etc/rc.conf.local contains:
> 
> lpd_flags="" 
> 
> /etc/printcap is:
> 
> lp|printer:\
>       :lp=:rm=printer:\
>       :af=/etc/foomatic/hp-lj_300_400_color_m351_m451-ps.ppd:\
>       :if=/usr/local/bin/foomatic-rip:\
>       :sh:mx#0:\
>       :sd=/var/spool/output:\
>       :lf=/var/log/lpd-errs:

Quoting directly from printcap(5):

        The if filter is invoked with arguments:

        if [-c] -wwidth -llength -iindent -n login -h host acct-file

        The -c flag is passed only if the -l flag (pass control characters
        literally) is specified to lpr(1). width and length specify the page
        width and length (from pw and pl, respectively) in characters.  The
        -n and -h parameters specify the login name and host name
        of the owner of the job, respectively. The acct-file function
        is passed from the af printcap entry.


I don't think there is some other way to pass any more Postscript options
in your lpr line that would get to the if script (foomatic). You can run
a script (if = foomatic) and give it an argument (af = PPD),
but I think that's all.

Reply via email to