*BSD News Article 52989


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!EU.net!Germany.EU.net!zib-berlin.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Printing filter question
Date: 13 Oct 1995 08:48:19 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 34
Message-ID: <45l5k3$3h3@uriah.heep.sax.de>
References: <45jdrl$pi9@gap.cco.caltech.edu>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Stan <stan@bombay.gps.caltech.edu> wrote:

>Now I want to set up a queue that will use psresize to scale up plots from 
>letter size paper to E size.  I added the following printcap entry:
>
>ps4x|scale up postscript:\
>          :lp=:rm=131.215.66.240:rp=lp:\
>          :sd=/var/spool/ps4x:lf=/var/log/ps4x-errs:\
>          :if=/usr/local/lib/ps4xif:\
>          :sh:mx#0:sf:rs:
>          
>The input filter script is very simple:
>
>#!/bin/sh
>/usr/local/bin/psresize -q -Pletter -h44in -w34in
>
>If I am in a window and do this:
>
>cat postscriptfile.ps | /usr/local/lib/ps4xif | lpr -Pbps
>
>I get my plot scaled up big.  If I just print to the ps4x queue, I get it 
>small.  What am I doing wrong here?  It seems as if the input filter script 
>is not being called.

Printer filtering does only occur on the "final" lpd agent, you cannot
set it up on a machine forwarding its jobs (i.e., one using the "rp"
feature).

I think this can be worked around, but i don't have anything handy.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)