From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 06:56:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C04116A4CE for ; Thu, 19 Feb 2004 06:56:46 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 974E043D1D for ; Thu, 19 Feb 2004 06:56:45 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp39-240.lns1.adl1.internode.on.net [150.101.39.240])i1JEudwn075892; Fri, 20 Feb 2004 01:26:40 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: "Eric F Crist" , "'FreeBSD questions List'" Date: Fri, 20 Feb 2004 01:26:39 +1030 User-Agent: KMail/1.4.3 References: <004a01c3f56d$86c9ac30$6401a8c0@Nomad> In-Reply-To: <004a01c3f56d$86c9ac30$6401a8c0@Nomad> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200402200045.04496.malcolm.kay@internode.on.net> Subject: Re: Apsfilter and margins... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 14:56:46 -0000 On Wed, 18 Feb 2004 02:18, Eric F Crist wrote: > -----Original Message----- > From: Malcolm Kay [mailto:malcolm.kay@internode.on.net] > Sent: Tuesday, February 17, 2004 9:27 AM > To: ecrist@adtechintegrated.com; FreeBSD questions List > Subject: Re: Apsfilter and margins... > > On Tue, 17 Feb 2004 02:33, Eric F Crist wrote: > > Hello list, > > > > Does anyone here use apsfilter? If so, can you tell me how to fix th= e > > > > margins. There is NO bottom margin (text runs off bottom of the page= ) > > > > and the top margin is about 2 inches. Any idea on how to change this= ? > > No information about your circumstances -- printer make/model -- what > sort of files you are passing to it. > > This is sometimes a printer adjustment. Have you read the printer > manual? > > Malcolm Kay > > > Malcolm, > > I've got Brother HL-1440 laser printer. I throw all kinds of files to > it. Everything from text via command line (i.e. lpr /etc/rc.conf) to > openoffice documents to webpages from Konquror or Firebird. > > Yes, I've read the printer manual. > > Eric F Crist At work I have an HL1440 shared as a network printer. I don't use Apsfilter. It works fine with plain-text, postscript or PCL. The printcap entry: hl1440|raw1440|Brother HL1440:\ :sd=3D/var/spool/lpd/raw1440:\ :if=3D/usr/local/libexec/lpd/raw1440:\ :mx#0:\ :sh:\ :lp=3D:\ :rm=3Dhl1440:\ :lf=3D/var/log/lpd-errs: And /usr/local/libexec/lpd/raw1440: #!/bin/sh # # Treat LF as CR+LF: # printf "\033&k2G" || exit 2 # # Read first two characters of the file # IFS=3D"" read -r first_line first_two_chars=3D`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" =3D "%!" ]; then # # It is PostScript; use Ghostscript to scan-convert and print it. # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=3Dhl1250 -r300 \ -sOutputFile=3D- - && exit 0 else # # Plain text or PCL, so just print it directly; print a form feed # at the end to eject the last page. # echo "$first_line" && cat && printf "\033&l0H" && exit 0 fi exit 2 -------------------------------------------------------------------------= ------------------------------ Suggest you check what ghostscript DEVICE Apsfilter is using -- hl1250 seems to be a good choice. Other than that you could set up something similar to the above as an alternative printcap entry to test out your printer while bypassing Apsfilter -- should at least resolve whether the problem is with the prin= ter or Apsfilter. Malcolm